Skip to content

Commit

Permalink
Merge pull request #2739 from atlanhq/master-enable-repository-distach
Browse files Browse the repository at this point in the history
Add Github Workflow Repository Dispatcher for atlan repo
  • Loading branch information
arniesaha authored Jan 10, 2024
2 parents 8b35738 + 5c3196b commit 68dcdb6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/chart-release-dispatcher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Name of the Workflow
name: Charts Values Seed Trigger Dispatcher
on:
workflow_run:
workflows:
- "Java CI with Maven"
branches:
- beta
- staging
types:
- completed

jobs:
charts-release-dispatcher:
name: Dispatch
runs-on: ubuntu-latest
strategy:
matrix:
repo: ['atlanhq/atlan']
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
# extract branch name
- name: Get branch name
id: extract_branch
run: |
echo "branch=${{ github.event.workflow_run.head_branch }}" >> $GITHUB_OUTPUT
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.my_pat }}
repository: ${{ matrix.repo }}
event-type: dispatch_chart_release_workflow
client-payload: |-
{
"repo": {
"name": "${{ github.repository }}",
"branch": "${{ steps.extract_branch.outputs.branch }}"
}
}

0 comments on commit 68dcdb6

Please sign in to comment.