Skip to content

Commit

Permalink
update yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Aug 8, 2024
1 parent 439f5ff commit 70319df
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/reopen-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ jobs:
per_page: 100
});
return { issue_numbers: issues.map(issue => issue.number).join(',') };
result-encoding: string
const issueNumbers = issues.map(issue => issue.number).join(',');
console.log(`Fetched issues: ${issueNumbers}`);
return { issue_numbers: issueNumbers };
- name: Reopen and Remove Label
uses: actions/github-script@v7.0.1
with:
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
script: |
const issueNumbers = process.env.ISSUE_NUMBERS.split(',');
const issueNumbers = "${{ steps.fetch_issues.outputs.issue_numbers }}".split(',');
for (const issue_number of issueNumbers) {
// Reopen the issue
Expand All @@ -56,5 +57,3 @@ jobs:
});
console.log(`Removed label 'lifecycle/stale' from issue #${issue_number}`);
}
env:
ISSUE_NUMBERS: ${{ steps.fetch_issues.outputs.result }}

0 comments on commit 70319df

Please sign in to comment.