Skip to content

Commit

Permalink
Merge pull request #658 from Homebrew/create-or-update-issue-github-t…
Browse files Browse the repository at this point in the history
…oken

workflows/scheduled: use `github.token`
  • Loading branch information
ZhongRuoyu authored Sep 24, 2024
2 parents 2922dc9 + bcf1139 commit 999618b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,18 @@ jobs:
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
issues: write # for Homebrew/actions/create-or-update-issue
steps:
- name: Open, update, or close deploy issue
uses: Homebrew/actions/create-or-update-issue@master
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
token: ${{ github.token }}
repository: ${{ github.repository }}
title: rubydoc.brew.sh deployment failed!
body: The most recent [rubydoc.brew.sh deployment failed](${{ env.RUN_URL }}).
labels: deploy failure
update-existing: ${{ contains(needs.*.result, 'failure') }}
close-existing: ${{ needs.deploy.result == 'success' }}
close-from-author: BrewTestBot
close-from-author: github-actions[bot]
close-comment: The most recent [rubydoc.brew.sh deployment succeeded](${{ env.RUN_URL }}). Closing issue.

0 comments on commit 999618b

Please sign in to comment.