Skip to content

workflows/push.yml: Add token to Push. #29

workflows/push.yml: Add token to Push.

workflows/push.yml: Add token to Push. #29

Workflow file for this run

name: Mirror to wiki
on: [push]
jobs:
mirror:
name: Mirror
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v2
with:
path: ./mirror
- name: Checkout wiki repository
uses: actions/checkout@main
with:
repository: df-mc/dragonfly.wiki
ref: refs/heads/master
token: ${{ secrets.ACTIONS_SECRET }}
path: ./wiki
- name: Remove ignored files
run: |
cd mirror
IGNORE=$(cat .wikiignore)
rm -rf $IGNORE
cd ..
- name: Apply changes
run: |
cp -a mirror/. wiki
- name: Push changes
with:
token: ${{ secrets.ACTIONS_SECRET }}
run: |

Check failure on line 38 in .github/workflows/push.yml

View workflow run for this annotation

GitHub Actions / Mirror to wiki

Invalid workflow file

The workflow is not valid. .github/workflows/push.yml (Line: 38, Col: 9): Unexpected value 'run' .github/workflows/push.yml (Line: 35, Col: 9): Required property is missing: uses
cd wiki
if ! git diff --exit-code --quiet; then
git add .
git config user.name github-actions
git config user.email [email protected]
git commit -am "${{ github.event.head_commit.message }} (@${{ github.event.head_commit.author.name }})"
git push
fi