Skip to content

Commit

Permalink
Dispatch workflow to deploy testing app
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed May 6, 2021
1 parent 399fd6c commit 886c709
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,27 @@ jobs:
name: wayback
path: ./dist/*
if-no-files-found: error

dispatch:
if: github.repository == 'wabarc/wayback'
name: Repository Dispatch
runs-on: ubuntu-latest
needs: [publish]
steps:
- name: Dispatch repository in wabarc/on-heroku (release)
uses: peter-evans/repository-dispatch@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
repository: wabarc/on-heroku
event-type: deploy
token: ${{ secrets.PAT_WORKFLOW }}
client-payload: '{"from": "${{ github.repository }}", "channel": "stable"}'

- name: Dispatch repository in wabarc/on-heroku (testing)
uses: peter-evans/repository-dispatch@v1
if: ${{ github.event_name == 'push' }}
with:
repository: wabarc/on-heroku
event-type: deploy
token: ${{ secrets.PAT_WORKFLOW }}
client-payload: '{"from": "${{ github.repository }}", "channel": "edge"}'
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
- "Makefile"

jobs:
test:
testing:
name: Testing
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 886c709

Please sign in to comment.