From f44dbfe23c2c64a5a6209c77461900b76ce17005 Mon Sep 17 00:00:00 2001 From: G <52905881+giga-a@users.noreply.github.com> Date: Wed, 24 Mar 2021 22:29:08 -0700 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dc1b865 --- /dev/null +++ b/.github/workflows/main.yml @@ -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