diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 36e687ca03..591e79bb9e 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -5,15 +5,15 @@ on: workflow_call: outputs: tag: - description: "The tag of the published package" - value: ${{ jobs.publish-bundle.outputs.tag }} + description: 'The tag of the published package' + value: '${{ jobs.publish-bundle.outputs.tag }}' jobs: publish-bundle: name: 'Publish Bundle' runs-on: 'gemini-cli-ubuntu-16-core' outputs: - tag: ${{ steps.get_tag.outputs.tag }} + tag: '${{ steps.get_tag.outputs.tag }}' permissions: contents: 'read' packages: 'write' @@ -45,8 +45,11 @@ jobs: run: 'npm run bundle' - name: 'Get tag' - id: get_tag - run: echo "tag=ci-${{ github.sha }}" >> $GITHUB_OUTPUT + id: 'get_tag' + shell: 'bash' + env: + SHA: 'ci-${{ github.sha }}' + run: 'echo "tag=$SHA"' - name: 'Publish to GitHub Packages' - run: 'npm publish --tag=${{ steps.get_tag.outputs.tag }}' + run: 'npm publish --tag="${{ steps.get_tag.outputs.tag }}"' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e86f4d90d7..285d00e7a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,12 @@ +name: 'Testing: CI' + on: workflow_call: inputs: tag: description: 'The tag of the published package' required: true - type: string + type: 'string' concurrency: group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index fcd4931411..6cb583826c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -4,7 +4,7 @@ on: tag: description: 'The tag of the published package' required: true - type: string + type: 'string' concurrency: group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' diff --git a/.github/workflows/orchestrator.yml b/.github/workflows/orchestrator.yml index fed3d8eb0a..79ea4d6444 100644 --- a/.github/workflows/orchestrator.yml +++ b/.github/workflows/orchestrator.yml @@ -15,18 +15,18 @@ concurrency: jobs: build-and-publish: name: 'Build and Publish CI Bundle' - uses: ./.github/workflows/build-and-publish.yml + uses: './.github/workflows/build-and-publish.yml' ci: name: 'CI Checks' - needs: build-and-publish - uses: ./.github/workflows/ci.yml + needs: 'build-and-publish' + uses: './.github/workflows/ci.yml' with: - tag: ${{ needs.build-and-publish.outputs.tag }} + tag: '${{ needs.build-and-publish.outputs.tag }}' e2e: name: 'E2E Checks' - needs: build-and-publish - uses: ./.github/workflows/e2e.yml + needs: 'build-and-publish' + uses: './.github/workflows/e2e.yml' with: - tag: ${{ needs.build-and-publish.outputs.tag }} + tag: '${{ needs.build-and-publish.outputs.tag }}'