Skip to content

Commit

Permalink
fix repository dispatch (#2551)
Browse files Browse the repository at this point in the history
* fix repository dispatch

Signed-off-by: Samhita Alla <[email protected]>

* fix indentation

Signed-off-by: Samhita Alla <[email protected]>

* fix indentation

Signed-off-by: Samhita Alla <[email protected]>

* fix condition

Signed-off-by: Samhita Alla <[email protected]>

* fix condition

Signed-off-by: Samhita Alla <[email protected]>

* fix condition

Signed-off-by: Samhita Alla <[email protected]>

* fix condition

Signed-off-by: Samhita Alla <[email protected]>

* working version

Signed-off-by: Samhita Alla <[email protected]>
  • Loading branch information
samhita-alla authored May 27, 2022
1 parent e0a500a commit 2762eab
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@ jobs:
docker tag ghcr.io/flyteorg/${{ matrix.component }}:${{ steps.set_version.outputs.version }} ghcr.io/flyteorg/${{ matrix.component }}-release:latest
docker push ghcr.io/flyteorg/${{ matrix.component }}-release:latest
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.FLYTE_BOT_PAT }}
repository: flyteorg/flyteorg.github.io
event-type: release
client-payload: '{"tag": "${{ steps.set_version.outputs.version }}"}'

helm-release:
name: Flyte helm release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -129,10 +121,25 @@ jobs:
run: |
make prepare_artifacts
git stash
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --release-notes=CHANGELOG/CHANGELOG-${{ github.event.inputs.version }}.md
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}

repository-dispatch:
name: Repository Dispatch
runs-on: ubuntu-latest
needs: [bump-version, publish-flyte-component-image]
if: ${{ !contains('${{ needs.bump-version.outputs.version }}', 'b') }}
steps:
- name: Create an event for the release
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.FLYTE_BOT_PAT }}
repository: flyteorg/flyteorg.github.io
event-type: release
client-payload: '{"tag": "${{ needs.bump-version.outputs.version }}"}'

0 comments on commit 2762eab

Please sign in to comment.