Skip to content

Commit

Permalink
Re-added missing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fturizo committed Sep 21, 2023
1 parent 582c560 commit 1ea7ad1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/monitor-abandoned-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Monitor Abandoned Issues
#Runs at minute 0 past every 48th hour
on:
schedule:
- cron: "0 */48 * * *"
env:
daysInterval: ${{ vars.MONITORING_INTERVAL_DAYS }}
jobs:
check-environment:
runs-on: ubuntu-latest
steps:
- run: |
if [ -z $daysInterval ]; then
echo "::error::'MONITORING_INTERVAL_DAYS' environment variable is not set"
exit 1
fi
check-abandoned-issues:
needs: check-environment
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v3
- name: Monitor abandoned issues
uses: actions/github-script@v6
with:
script: |
const script = require('./.github/workflows/scripts/checkAbandonedIssues.js');
await script({github, context, core});
close-abandoned-issues:
needs: check-environment
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v3
- name: Close abandoned issues
uses: actions/github-script@v6
with:
script: |
const script = require('./.github/workflows/scripts/closeAbandonedIssues.js');
await script({github, context, core});

0 comments on commit 1ea7ad1

Please sign in to comment.