From fbf72f58d557f070850ae57318a68c4650453d36 Mon Sep 17 00:00:00 2001 From: Javier de la Puente Date: Mon, 8 Apr 2024 15:37:13 +0200 Subject: [PATCH] let's see without vars --- .github/workflows/publish_charm.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish_charm.yaml b/.github/workflows/publish_charm.yaml index 80628049b..589b58fb4 100644 --- a/.github/workflows/publish_charm.yaml +++ b/.github/workflows/publish_charm.yaml @@ -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 @@ -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