Skip to content

Commit

Permalink
[release-1.31] Fix Release downstream components in release workflow (#…
Browse files Browse the repository at this point in the history
…7595)

* Use GITHUB_ACTION_TAG env and remove release context

* Fix step name
  • Loading branch information
rafaelbreno authored Jan 14, 2025
1 parent 6f5a0f3 commit b2d8003
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,24 +269,20 @@ jobs:
rke2-upgrade
system-agent-installer-rke2
- name: Create `${{ github.event.release.tag_name }}` release in `rancher/rke2-upgrade`
- name: Create release in `rancher/rke2-upgrade`
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
gh release create "${{ github.event.release.tag_name }}" \
gh release create "$GITHUB_ACTION_TAG" \
--repo rancher/rke2-upgrade \
--title "${{ github.event.release.name }}" \
--notes "${{ github.event.release.body }}" \
${{ github.event.release.prerelease && '--prerelease' || '' }} \
${{ github.event.release.draft && '--draft' || '' }}
--title "$GITHUB_ACTION_TAG" \
--notes "Automated release created from $GITHUB_ACTION_TAG tag in ${{ github.repository }}"
- name: Create `${{ github.event.release.tag_name }}` release in `rancher/system-agent-installer-rke2`
- name: Create release in `rancher/system-agent-installer-rke2`
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
gh release create "${{ github.event.release.tag_name }}" \
gh release create "$GITHUB_ACTION_TAG" \
--repo rancher/system-agent-installer-rke2 \
--title "${{ github.event.release.name }}" \
--notes "${{ github.event.release.body }}" \
${{ github.event.release.prerelease && '--prerelease' || '' }} \
${{ github.event.release.draft && '--draft' || '' }}
--title "$GITHUB_ACTION_TAG" \
--notes "Automated release created from $GITHUB_ACTION_TAG tag in ${{ github.repository }}"

0 comments on commit b2d8003

Please sign in to comment.