-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify repository dispatch event (#2612)
* 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
1 parent
5abbd27
commit 2da24a2
Showing
2 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}"}' |