This commit is contained in:
parent
4075820f49
commit
fb8f791513
@ -3,9 +3,6 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
test-on-protected-branch:
|
test-on-protected-branch:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
|
|
||||||
contents: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fix dns
|
- name: Fix dns
|
||||||
run: echo 'nameserver 1.1.1.1' > /etc/resolv.conf
|
run: echo 'nameserver 1.1.1.1' > /etc/resolv.conf
|
||||||
@ -15,15 +12,11 @@ jobs:
|
|||||||
- name: Add a line to README.md
|
- name: Add a line to README.md
|
||||||
run: |
|
run: |
|
||||||
echo -e "$(date) - commited via Gitea Actions\n" >> README.md
|
echo -e "$(date) - commited via Gitea Actions\n" >> README.md
|
||||||
- name: Get last commit message
|
|
||||||
id: last-commit
|
|
||||||
run: |
|
|
||||||
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
|
|
||||||
- name: Commit changes back
|
- name: Commit changes back
|
||||||
uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_user_name: eliroca
|
commit_user_name: gitea-actions-bot
|
||||||
commit_author: ${{ steps.last-commit.outputs.author }}
|
commit_author: Gitea Actions bot <bot+gitea@example.com>
|
||||||
commit_message: "[skip actions] Gitea Actions run"
|
commit_message: "[skip actions] Gitea Actions run"
|
||||||
commit_options: '--no-edit'
|
commit_options: '--no-edit'
|
||||||
skip_fetch: true
|
skip_fetch: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user