Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
feature: add repo dispatch to cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Feb 14, 2023
1 parent aa9da80 commit e9617c9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@ jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Get branch name
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id: ref
- name: Echo branch
run: echo "${{ steps.ref.outputs.branch }}"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CON_PCA_ACCESS_TOKEN }}
repository: cisagov/con-pca-cicd
event-type: deploy-sandbox
client-payload: '{"trigger": "con-pca-api"}'
client-payload: '{"trigger": "con-pca-tasks-docker"}'

0 comments on commit e9617c9

Please # to comment.