From 1372e9e2e7385f777693782f111a3eae0bb9acc0 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sun, 17 Oct 2021 13:06:35 -0700 Subject: [PATCH] Publish push event for master too. --- .github/workflows/pub_master_push_event.yml | 19 +++++++++++++++++++ .github/workflows/pub_staging_push_event.yml | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pub_master_push_event.yml diff --git a/.github/workflows/pub_master_push_event.yml b/.github/workflows/pub_master_push_event.yml new file mode 100644 index 0000000..b026e65 --- /dev/null +++ b/.github/workflows/pub_master_push_event.yml @@ -0,0 +1,19 @@ +name: Publish Master Push Event +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + publish_event: + runs-on: ubuntu-latest + name: Publish staging push + steps: + - run: | + curl -i \ + -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token ${{ secrets.PUBLISH_PUSH_TOKEN }}" \ + https://api.github.com/repos/awalsh128/cache-apt-pkgs-action-ci/dispatches \ + -d '{"event_type":"master_push"}' \ No newline at end of file diff --git a/.github/workflows/pub_staging_push_event.yml b/.github/workflows/pub_staging_push_event.yml index 23782ba..681c5cb 100644 --- a/.github/workflows/pub_staging_push_event.yml +++ b/.github/workflows/pub_staging_push_event.yml @@ -8,12 +8,12 @@ on: jobs: publish_event: runs-on: ubuntu-latest - name: Publish staging pull request. + name: Publish staging push steps: - run: | curl -i \ -X POST \ -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ secrets.TRIGGER_PUBLISH_STAGING_PR_TOKEN }}" \ + -H "Authorization: token ${{ secrets.PUBLISH_PUSH_TOKEN }}" \ https://api.github.com/repos/awalsh128/cache-apt-pkgs-action-ci/dispatches \ -d '{"event_type":"staging_push"}' \ No newline at end of file