mirror of
https://github.com/qeeqbox/social-analyzer.git
synced 2021-05-13 03:10:39 +03:00
Create main.yml
This commit is contained in:
26
.github/workflows/main.yml
vendored
Normal file
26
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: publish
|
||||
on: [push]
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: install requirements
|
||||
run: sudo apt-get install curl
|
||||
- name: build and run
|
||||
run: |
|
||||
curl https://raw.githubusercontent.com/qeeqbox/global-scripts/main/auto-checking.sh > auto-checking.sh
|
||||
chmod +x auto-checking.sh
|
||||
./auto-checking.sh social-analyzer
|
||||
- name: commit changes
|
||||
if: success()
|
||||
run: |
|
||||
git config user.name "qb-auto"
|
||||
git config user.email "qbactions@gmail.com"
|
||||
git add -- . :!auto-checking.sh
|
||||
git commit -m "🤖"
|
||||
git push
|
||||
- name: delete auto-checking.sh
|
||||
if: always()
|
||||
run: |
|
||||
[ -e auto-checking.sh ] && rm -- auto-checking.sh
|
||||
Reference in New Issue
Block a user