Repository navigation
trigger-notifier #17548
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: WikitNotifier Cycle | |
| on: | |
| repository_dispatch: | |
| types: [trigger-notifier] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Run notification cycle | |
| run: npm run cycle | |
| env: | |
| NOTIFIER_CONFIG: ./config.yaml | |
| NOTIFY_TOKEN: ${{ secrets.NOTIFY_TOKEN }} | |
| - name: Commit checkpoint | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add checkpoint.json | |
| git diff --cached --quiet || git commit -m "update checkpoint" | |
| git pull --rebase origin main | |
| git push |