Skip to content

Commit

Permalink
let's see without vars
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Apr 8, 2024
1 parent 2bcffa7 commit fbf72f5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,11 @@ 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: ${{ needs.vars.outputs.charm_working_directory }}
working-directory: ${{ env.working_directory }}/${{ env.charm_directory }}
secrets: inherit
release-charm-libs:
name: Release charm libs
Expand Down Expand Up @@ -311,9 +303,9 @@ jobs:
done
publish-charm:
name: Publish charm to ${{ needs.vars.outputs.channel }}
name: Publish charm
runs-on: ${{ needs.get-runner-image.outputs.runs-on }}
needs: [get-run-id, get-runner-image, publish-images, vars]
needs: [get-run-id, get-runner-image, publish-images]
if: ${{ !failure() }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit fbf72f5

Please sign in to comment.