From 22ff523ce8bc22288bc8e2c2243ac7f1b072f605 Mon Sep 17 00:00:00 2001 From: Aaqib Mujtaba <117231666+aaqib-m@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:25:45 -0700 Subject: [PATCH] fix: process outputs between jobs --- .github/workflows/release.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0644caf..8e28d60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release and Publish +name: Publish on: push: @@ -26,35 +26,19 @@ jobs: else IMG_TAG=${{ github.event.inputs.releaseTag }} fi - IMG="${{ secrets.AZURE_CONTAINER_REGISTRY }}/public/aks/msi-acrpull:${IMG_TAG}" + IMG="/public/aks/msi-acrpull:${IMG_TAG}" echo "IMG_TAG=${IMG_TAG}" >> ${GITHUB_OUTPUT} echo "IMG=${IMG}" >> ${GITHUB_OUTPUT} outputs: IMG_TAG: ${{ steps.get_metadata.outputs.IMG_TAG }} IMG: ${{ steps.get_metadata.outputs.IMG }} - release: - runs-on: ubuntu-latest - needs: setup - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Create release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ needs.setup.outputs.IMG_TAG }} - release_name: Release ${{ needs.setup.outputs.IMG_TAG }} - draft: true - publish: runs-on: labels: ["self-hosted", "1ES.Pool=${{ vars.RUNNER_BASE_NAME}}-ubuntu"] needs: setup env: - IMG: ${{ needs.setup.outputs.IMG }} + IMG: ${{ secrets.AZURE_CONTAINER_REGISTRY }}${{ needs.setup.outputs.IMG }} steps: - name: Check out code uses: actions/checkout@v4