11name : Create GitHub Release
22
33env :
4- NODE_VERSION : 18
4+ NODE_VERSION : 20
55
66on :
77 push :
@@ -17,10 +17,10 @@ jobs:
1717 runs-on : ubuntu-latest
1818 steps :
1919 - name : Check out the repository
20- uses : actions/checkout@v3
20+ uses : actions/checkout@v4
2121
2222 - name : Set up Node.js
23- uses : actions/setup-node@v3
23+ uses : actions/setup-node@v4
2424 with :
2525 node-version : ${{ env.NODE_VERSION }}
2626 registry-url : https://registry.npmjs.org
5050 yarn extract-changelog -e $VERSION
5151
5252 - name : Create GitHub Release
53- uses : softprops/action-gh-release@v1
53+ uses : softprops/action-gh-release@v2
5454 with :
5555 files : |
5656 syntaxes/out/adblock.plist
@@ -63,26 +63,22 @@ jobs:
6363
6464 notify :
6565 name : Send Slack notification
66- needs :
67- - release
68-
66+ needs : release
67+ # Note: 'always()' is needed to run the notify job even if the test job was failed
6968 if :
70- ${{ always() &&
71- (
72- github.event_name == 'push' ||
73- github.event_name == 'workflow_dispatch'
74- )
69+ ${{
70+ always() &&
71+ github.repository == 'AdguardTeam/VscodeAdblockSyntax' &&
72+ github.event_name == 'push'
7573 }}
7674 runs-on : ubuntu-latest
7775 steps :
78- - name : Conclusion
79- uses : technote-space/workflow-conclusion-action@v3
80-
8176 - name : Send Slack notification
8277 uses : 8398a7/action-slack@v3
8378 with :
84- status : ${{ env.WORKFLOW_CONCLUSION }}
85- fields : workflow, repo, message, commit, author, eventName, ref
79+ status : ${{ needs.release.result }}
80+ fields : workflow, repo, message, commit, author, eventName, ref, job
81+ job_name : release
8682 env :
8783 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8884 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
0 commit comments