Skip to content

Commit

Permalink
chore: create issue when new patch is available
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Oct 8, 2024
1 parent aabfc16 commit 9d28d72
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check-latest-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,14 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/patch-node.yml/dispatches \
-d '{"ref":"main","inputs":{"nodeVersion":"${{ steps.compare.outputs.latest_version }}","patchFile":"${{ steps.compare.outputs.patch_version }}"}}'
# create new issue if patch is outdated
- name: Create issue
if: steps.compare.outputs.outdated == 'true'
run: |
echo "Creating issue for outdated patch for Node.js ${{ matrix.node-version }}"
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues \
-d '{"title":"Bump patch for Node.js from ${{ steps.compare.outputs.patch_version }} to ${{ steps.compare.outputs.latest_version }}","body":"The patch for Node.js ${{ matrix.node-version }} is outdated. Please create a new patch."}'

0 comments on commit 9d28d72

Please sign in to comment.