From 2f6bf6fc2158d0601fa20bdfd16b42038cb4c36d Mon Sep 17 00:00:00 2001 From: Stefan Kremser Date: Fri, 10 Jul 2020 18:39:37 +0200 Subject: [PATCH] Create nightly.yml --- .github/workflows/nightly.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..9c643da --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,20 @@ +name: Trigger nightly build + +on: + push: + +jobs: + + notify-nightly: + name: "Trigger new build on nightly-deauther" + runs-on: ubuntu-latest + steps: + - name: Build message title + run: echo ::set-env name=TITLE::Deauther V2.5 $(echo ${{ github.sha }} | cut -c -7) + + - name: Send message + run: | + curl -X POST https://api.github.com/repos/spacehuhntech/nightly-deauther/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.ACCESS_TOKEN }} \ + --data '{"event_type": "${{ env.TITLE }}", "client_payload": {}}'