name: "Update challenges on owasp-juice.shop"

on:
  push:
    branches: [ master ]
    paths: 
      - 'data/static/challenges.yml'

jobs:
  UpdateChallengesOnWebsite:
    runs-on: ubuntu-latest
    steps:
    - name: Check out Git repository
      uses: actions/checkout@v2
      with:
        repository: OWASP/www-project-juice-shop/
        branch: master
    - name: 'Update challenges.yml'
      run: |
        cd _data/
        rm challenges.yml
        wget https://raw.githubusercontent.com/bkimminich/juice-shop/master/data/static/challenges.yml
    - uses: stefanzweifel/git-auto-commit-action@v4.0.0
      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>

name: "Update challenges on owasp-juice.shop"

on:
  push:
    branches: [ master ]
    paths: 
      - 'data/static/challenges.yml'

jobs:
  UpdateChallengesOnWebsite:
    runs-on: ubuntu-latest
    steps:
    - name: Check out Git repository
      uses: actions/checkout@v2
      with:
        repository: OWASP/www-project-juice-shop
        branch: master
    - name: 'Update challenges.yml'
      run: |
        cd _data/
        rm challenges.yml
        wget https://raw.githubusercontent.com/bkimminich/juice-shop/master/data/static/challenges.yml
    - uses: stefanzweifel/git-auto-commit-action@v4.0.0
      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>

Remove trainling slash from repository identifer
Remove trainling slash from repository identifer
