Publish push event for master too.
This commit is contained in:
parent
d6265bde5b
commit
1372e9e2e7
2 changed files with 21 additions and 2 deletions
19
.github/workflows/pub_master_push_event.yml
vendored
Normal file
19
.github/workflows/pub_master_push_event.yml
vendored
Normal file
|
@ -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"}'
|
4
.github/workflows/pub_staging_push_event.yml
vendored
4
.github/workflows/pub_staging_push_event.yml
vendored
|
@ -8,12 +8,12 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
publish_event:
|
publish_event:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Publish staging pull request.
|
name: Publish staging push
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -i \
|
curl -i \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-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 \
|
https://api.github.com/repos/awalsh128/cache-apt-pkgs-action-ci/dispatches \
|
||||||
-d '{"event_type":"staging_push"}'
|
-d '{"event_type":"staging_push"}'
|
Loading…
Reference in a new issue