Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify repository dispatch event #2612

Merged
merged 5 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}"}'