v8.0.0-rc.0 #10
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: "Update news on owasp-juice.shop" | |
on: | |
release: | |
types: [ published ] | |
# the pipeline doesn't use the GITHUB_TOKEN for anything, so no permissions needed. | |
permissions: {} | |
jobs: | |
UpdateNewsOnWebsite: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_TOKEN }} | |
repository: OWASP/www-project-juice-shop | |
ref: master | |
- name: Update tab_news.md | |
run: | | |
sed -i 's/<!-- next:multi-juicer -->/<!-- next:multi-juicer -->\n* ${{ github.event.release.published_at }}: multi-juicer [`${{ github.event.release.tag_name }}`](https:\/\/github.com\/juice-shop\/multi-juicer\/releases\/tag\/${{ github.event.release.tag_name }})/' tab_news.md | |
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 #v5.0.1 | |
with: | |
commit_message: "Add multi-juicer ${{ github.event.release.tag_name }} release notes to tab_news.md" | |
branch: master | |
commit_options: '--signoff' | |
# Optional commit user and author settings | |
commit_user_name: JuiceShopBot | |
commit_user_email: [email protected] | |
commit_author: JuiceShopBot <[email protected]> |