-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.16 KB
/
update-challenges-www.yml
File metadata and controls
34 lines (31 loc) · 1.16 KB
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
30
31
32
33
34
name: "Update challenges on owasp-juice.shop"
on:
push:
branches: [ master ]
paths:
- 'data/static/challenges.yml'
jobs:
UpdateChallengesOnWebsite:
if: github.repository == 'juice-shop/juice-shop'
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
with:
token: ${{ secrets.BOT_TOKEN }}
repository: OWASP/www-project-juice-shop
ref: master
- name: Update challenges.yml
run: |
cd _data/
rm challenges.yml
wget https://raw.githubusercontent.com/juice-shop/juice-shop/master/data/static/challenges.yml
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 #v5.0.1
with:
commit_message: "Auto-update challenges.yml from ${{ github.sha }}"
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>