Traffic workflow #27
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: Traffic | |
on: workflow_dispatch | |
jobs: | |
fetch_traffic: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch views data | |
run: | | |
curl --request GET \ | |
--url https://api.github.com/repos/${{ github.repository }}/traffic/views \ | |
--header 'authorization: Bearer ${{ secrets.TRAFFIC_API }}' \ | |
--header 'content-type: application/json' >> $GITHUB_WORKSPACE/traffic/views.json | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Nicolás Díaz Roussel" | |
git config --global user.signingkey ${{ secrets.USER_SIGNINGKEY }} | |
git config --global commit.gpgSign true | |
git add . | |
git commit -S -m "Update traffic views data" | |
git push origin trimAl |