Schedule Change #226
This file contains 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: Schedule Change | |
on: | |
schedule: | |
- cron: '0 */3 * * *' | |
workflow_dispatch: | |
jobs: | |
schedule-change: | |
name: Schedule Change | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Run Code | |
run: | | |
cd .github/action | |
npm ci | |
echo "OUTPUT=$(node ./schedule.js)" >> $GITHUB_OUTPUT | |
id: output | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
if: ${{ !contains(github.event.repository.full_name, 'template') }} | |
with: | |
commit_message: ${{ steps.output.outputs.OUTPUT }} | |
push_options: --force |