-
Notifications
You must be signed in to change notification settings - Fork 117
fix workflows #568
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
fix workflows #568
Changes from 1 commit
19540f0
9548ab0
1ff9d06
0bdc8ea
564a023
d7541da
549a482
f4f8190
33f3f16
43b4d41
dec86dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,3 +121,43 @@ jobs: | |
| needs: publish-fury | ||
| uses: ./.github/workflows/verify-installers.yaml | ||
| secrets: inherit | ||
|
|
||
| # Downstream triggers — notify other repos about the new release | ||
| trigger-types: | ||
| name: Trigger Types | ||
| if: github.repository == 'burnt-labs/xion' | ||
| uses: ./.github/workflows/trigger-types.yaml | ||
| with: | ||
| release_tag: ${{ github.event.release.tag_name }} | ||
| secrets: inherit | ||
|
|
||
| update-chain-registry: | ||
| name: Update Chain Registry | ||
| if: github.repository == 'burnt-labs/xion' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Dispatch to xion-assets | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| TAG_NAME: ${{ github.event.release.tag_name }} | ||
| run: | | ||
| EVENT_TYPE=$( [[ "$TAG_NAME" == *-rc* ]] && echo "xion-assets-testnet-release-trigger" || echo "xion-assets-mainnet-release-trigger" ) | ||
| gh api repos/burnt-labs/xion-assets/dispatches \ | ||
| -f "event_type=${EVENT_TYPE}" \ | ||
| -f "client_payload[tag_name]=${TAG_NAME}" | ||
|
||
|
|
||
| upgrade-testnet: | ||
| name: Testnet Upgrade PR | ||
| if: github.repository == 'burnt-labs/xion' && contains(github.event.release.tag_name, '-rc') | ||
| uses: burnt-labs/xion-testnet-2/.github/workflows/create-release.yml@main | ||
| with: | ||
| release_tag: ${{ github.event.release.tag_name }} | ||
| secrets: inherit | ||
|
|
||
| upgrade-mainnet: | ||
| name: Mainnet Upgrade PR | ||
| if: github.repository == 'burnt-labs/xion' && !contains(github.event.release.tag_name, '-rc') | ||
| uses: burnt-labs/xion-mainnet-1/.github/workflows/create-release.yml@main | ||
| with: | ||
| release_tag: ${{ github.event.release.tag_name }} | ||
| secrets: inherit | ||
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
publish-release.yamlsupportsworkflow_dispatch, but these new downstream jobs readgithub.event.release.tag_name, which is only present for thereleaseevent. A manual run will pass an empty/undefined tag into the reusable workflow (required input) and likely fail. Consider using a single release tag expression that works for both triggers (e.g., fall back togithub.ref_namewhengithub.event.release.tag_nameis not set).