github.com/nektos/act@v0.2.83/.github/workflows/promote.yml (about) 1 name: promote 2 on: 3 schedule: 4 - cron: '0 2 1 * *' 5 workflow_dispatch: {} 6 7 jobs: 8 release: 9 name: promote 10 runs-on: ubuntu-latest 11 environment: promote 12 steps: 13 - uses: actions/checkout@v4 14 id: checkout 15 env: 16 has_promote_token: ${{ secrets.PROMOTE_TOKEN && '1' || '' }} 17 if: env.has_promote_token 18 with: 19 fetch-depth: 0 20 ref: master 21 token: ${{ secrets.PROMOTE_TOKEN }} 22 - uses: fregante/setup-git-user@v2 23 if: steps.checkout.conclusion != 'skipped' 24 - uses: actions/setup-go@v5 25 if: steps.checkout.conclusion != 'skipped' 26 with: 27 go-version-file: go.mod 28 - run: make promote 29 if: steps.checkout.conclusion != 'skipped'