ping #268
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: Receive Results | |
on: [repository_dispatch] | |
jobs: | |
receive-resutls: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Event Information | |
run: | | |
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'" | |
echo "${{ github.event.client_payload.result }}" | base64 --decode | |
echo "${{ github.event.client_payload.result }}" | base64 --decode > result.json | |
- name: Update results file | |
run: | | |
python ./update-blueprint-result.py ${{ github.event.client_payload.repository }} ./result.json ${{ secrets.TOKEN }} | |
- name: Commit files | |
run: | | |
git config --local user.name "blueprint_bot" | |
git add ./docs | |
git commit -m "Adding linter results for ${{ github.event.client_payload.repository }}" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |