| 1 | name: publish |
| 2 | on: [push] |
| 3 | jobs: |
| 4 | publish: |
| 5 | runs-on: ubuntu-latest |
| 6 | steps: |
| 7 | - uses: actions/checkout@v2 |
| 8 | - name: install requirements |
| 9 | run: sudo apt-get install curl |
| 10 | - name: build and run |
| 11 | run: | |
| 12 | curl https://raw.githubusercontent.com/qeeqbox/global-scripts/main/auto-checking.sh > auto-checking.sh |
| 13 | chmod +x auto-checking.sh |
| 14 | ./auto-checking.sh social-analyzer |
| 15 | - name: commit changes |
| 16 | if: success() |
| 17 | run: | |
| 18 | git config user.name "qb-auto" |
| 19 | git config user.email "qbactions@gmail.com" |
| 20 | git add -- . :!auto-checking.sh |
| 21 | git commit -m "🤖" |
| 22 | git push |
| 23 | - name: delete auto-checking.sh |
| 24 | if: always() |
| 25 | run: | |
| 26 | [ -e auto-checking.sh ] && rm -- auto-checking.sh |
| 27 |