Skip to content

Commit

Permalink
modify repository dispatch event (#2612)
Browse files Browse the repository at this point in the history
* verify repository dispatch

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

* verify repository dispatch

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

* verify repository dispatch

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

* verify repository dispatch

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

* verify repository dispatch

Signed-off-by: Samhita Alla <[email protected]>
  • Loading branch information
samhita-alla authored Jun 14, 2022
1 parent 5abbd27 commit 2da24a2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,3 @@ jobs:
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 }}"}'
25 changes: 25 additions & 0 deletions .github/workflows/update_site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update version in flyte.org
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'


jobs:
repository-dispatch:
name: Repository Dispatch
runs-on: ubuntu-latest
steps:
- name: Fetch version
id: bump
run: |
# from refs/tags/v1.2.3 get 1.2.3
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
echo "::set-output name=version::$VERSION"
- 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": "${{ steps.bump.outputs.version }}"}'

0 comments on commit 2da24a2

Please sign in to comment.