-
Notifications
You must be signed in to change notification settings - Fork 132
29 lines (26 loc) · 1.25 KB
/
update-news-www.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Update news on owasp-juice.shop"
on:
release:
types: [ published ]
jobs:
UpdateNewsOnWebsite:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
with:
token: ${{ secrets.BOT_TOKEN }}
repository: OWASP/www-project-juice-shop
branch: 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@3ea6ae190baf489ba007f7c92608f33ce20ef04a #v4.16.0
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]>