Skip to content

Commit

Permalink
Run seperate job to trigger removal on comments
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Apr 16, 2023
1 parent 87a612f commit 68751ae
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
issue_comment:

jobs:
stale:

stale_action:
if: ${{ github.event.name != 'issue_comment' }}
runs-on: ubuntu-latest
permissions:
issues: write
Expand All @@ -25,3 +25,15 @@ jobs:
exempt-all-issue-assignees: true
operations-per-run: 300
close-issue-reason: 'not_planned'

remove_stale: # trigger "stale" removal immediately when stale issues are commented on
if: ${{ github.event.name == 'issue_comment' }}
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- name: Remove 'stale' label
run: gh issue edit ${{ github.event.issue.number }} --remove-label 'stale'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 68751ae

Please sign in to comment.