From e9a724cb679a784d5a43487831fbae82fe63e35d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:09:28 +0900 Subject: [PATCH] ci: wait for update-packagejson3 --- .github/workflows/test-update-packagejson.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-update-packagejson.yaml b/.github/workflows/test-update-packagejson.yaml index 2b8516ec..c5254da1 100644 --- a/.github/workflows/test-update-packagejson.yaml +++ b/.github/workflows/test-update-packagejson.yaml @@ -94,13 +94,15 @@ jobs: echo -n "FACT: branch-name for update-packagejson should be expected. " if [[ "${{ needs.update-packagejson.outputs.branch-name }}" == "test-release/${{ needs.set-tag.outputs.tag }}" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi echo -n "FACT: branch-name for update-packagejson2 should be empty. " - if [[ "${{ needs.update-packagejson2.outputs.branch-name }}" == "${{ github.head_ref }}" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi + if [[ "${{ needs.update-packagejson2.outputs.branch-name }}" == "${{ env.HEAD_REF }}" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi echo -n "FACT: branch-name for update-packagejson3 should be empty. " - if [[ "${{ needs.update-packagejson3.outputs.branch-name }}" == "${{ github.head_ref }}" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi + if [[ "${{ needs.update-packagejson3.outputs.branch-name }}" == "${{ env.HEAD_REF }}" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi + env: + HEAD_REF: ${{ github.head_ref }} cleanup: if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }} - needs: [update-packagejson] + needs: [update-packagejson, update-packagejson3] uses: ./.github/workflows/clean-packagejson-branch.yaml with: branch: ${{ needs.update-packagejson.outputs.branch-name }}