Update europace_security.yaml (#89) #69
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: "Create Scopes Doc" | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
create-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Fetch unshallow | |
run: git fetch --prune --tags --unshallow | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyyaml | |
- name: Transform YAML to Doc | |
run: | | |
python .github/workflows/scripts/scopes-doc.py -i europace_security.yaml > docs/scopes.md | |
- name: Commit files | |
run: | | |
echo ${{ github.ref }} | |
git add . | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "Updated Scopes Doc" -a | exit 0 | |
- name: Push changes | |
if: github.ref == 'refs/heads/master' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |