Skip to content

Commit

Permalink
fix: use charmcraft promote in promote.yaml workflow (#677)
Browse files Browse the repository at this point in the history
This commit rewrites the promote.yaml workflow to use charmcraft promote
command instead of the release-charm action.We can no longer use the
release-charm action because it relies on having GH releases in the repo,
which we have stopped producing since migrating our CI to data-platform-workflows

Part of canonical/bundle-kubeflow#1202
  • Loading branch information
DnPlas authored Feb 17, 2025
1 parent 7263da8 commit 3b4a150
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
promote-charm:
name: Promote charm
runs-on: ubuntu-20.04
env:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_CREDENTIALS }}
steps:
- uses: actions/checkout@v3
- name: Release charm to channel
# TODO: use canonical/charming-actions/promote-charm?
uses: canonical/charming-actions/[email protected]
with:
credentials: ${{ secrets.CHARMCRAFT_CREDENTIALS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
destination-channel: ${{ github.event.inputs.destination-channel }}
origin-channel: ${{ github.event.inputs.origin-channel }}
tag-prefix: ${{ github.event.inputs.charm-name }}
charm-path: charms/${{ github.event.inputs.charm-name}}
- name: Install charmcraft
run: |
sudo snap install charmcraft --classic --channel latest/stable
- name: Run charmcraft promote
run: |
charmcraft promote --name ${{ github.event.inputs.charm-name }} \
--from-channel ${{ github.event.inputs.origin-channel }} \
--to-channel ${{ github.event.inputs.destination-channel }} \
--yes

0 comments on commit 3b4a150

Please sign in to comment.