Skip to content

Commit

Permalink
put back the vars job
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Apr 8, 2024
1 parent fbf72f5 commit 681b921
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@ jobs:
dry_run: true
github_token: ${{ secrets.GITHUB_TOKEN }}
charm_dir: ${{ env.working_directory }}/${{ env.charm_directory }}
vars:
runs-on: ubuntu-22.04
outputs:
charm_working_directory: ${{ env.working_directory }}/${{ env.charm_directory }}
channel: ${{ env.channel }}
steps:
- run: echo "Exposing env vars"
get-runner-image:
name: Get runner image
needs: vars
uses: canonical/operator-workflows/.github/workflows/get_runner_image.yaml@test-netbox
with:
working-directory: ${{ env.working_directory }}/${{ env.charm_directory }}
working-directory: ${{ needs.vars.outputs.charm_working_directory }}
secrets: inherit
release-charm-libs:
name: Release charm libs
Expand Down Expand Up @@ -305,7 +313,7 @@ jobs:
publish-charm:
name: Publish charm
runs-on: ${{ needs.get-runner-image.outputs.runs-on }}
needs: [get-run-id, get-runner-image, publish-images]
needs: [get-run-id, get-runner-image, publish-images, vars]
if: ${{ !failure() }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 681b921

Please sign in to comment.