Skip to content

Commit

Permalink
ci: use gh cli to close issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jun 12, 2024
1 parent 0362d6c commit 9da76df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/comment-and-close-reusable.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
on:
workflow_call:
secrets:
DHIS2_BOT_GITHUB_TOKEN:
required: true

jobs:
comment-and-close:
runs-on: ubuntu-latest
steps:
- uses: vardevs/candc@v1
with:
close-comment: 'If you would like to file a bug report or feature request, please refer to our issue tracker: https://dhis2.atlassian.net'
exempt-users: dhis2-bot,dependabot,kodiakhq
github-token: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}}
- run: "gh issue close --comment 'If you would like to file a bug report or feature request, please refer to our issue tracker: https://dhis2.atlassian.net'"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/comment-and-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ on:
jobs:
comment-and-close:
uses: ./.github/workflows/comment-and-close-reusable.yml
secrets: inherit
if: !contains(github.event.issues.sender.login, fromJson('["dhis2-bot", "kodiakhq", "dependabot"]'))

0 comments on commit 9da76df

Please sign in to comment.