AWS Lambda Builders v1.47.0 Release #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Close issues on release cut | |
on: | |
release: | |
types: [released] | |
jobs: | |
run-workflow: | |
permissions: | |
issues: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Close issues marked | |
env: | |
REPO : ${{ github.repository }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
release_url=$(gh release view ${{ github.ref_name }} --repo $REPO --json url --jq ".url") | |
for issue_number in $(gh issue list -l "stage/waiting-for-release" --repo $REPO --json number --jq ".[].number"); do | |
gh issue close $issue_number -c "Patch is released in [${{ github.ref_name }}]($release_url). If you are AWS SAM CLI user, please wait for next AWS SAM CLI release. Closing" -r completed --repo $REPO | |
done |