From d0ac7cc1c61cbcfeece6e827b824481958e66b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kimminich?= Date: Mon, 16 Oct 2023 00:45:59 +0200 Subject: [PATCH] Add workflow to update https://owasp.org/www-project-juice-shop/#div-news with new releases (works only in conjunction with https://github.com/OWASP/www-project-juice-shop/commit/7b94cb59eaa1cb5b01680cb9922cbf2300d7dac7) --- .github/workflows/update-news-www.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-news-www.yml diff --git a/.github/workflows/update-news-www.yml b/.github/workflows/update-news-www.yml new file mode 100644 index 000000000..b41d43e13 --- /dev/null +++ b/.github/workflows/update-news-www.yml @@ -0,0 +1,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.ACCESS_TOKEN }} + repository: OWASP/www-project-juice-shop + branch: master + - name: Update tab_news.md + run: | + sed -i 's//\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: 61591748+JuiceShopBot@users.noreply.github.com + commit_author: JuiceShopBot <61591748+JuiceShopBot@users.noreply.github.com>