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