Skip to content

Commit 2ec1a41

Browse files
committed
chore: fix job dependency
1 parent f49ad57 commit 2ec1a41

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release-proposal-dispatch.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
permissions:
6060
id-token: write # Enable OIDC
6161
runs-on: ubuntu-latest
62+
needs: check-proposal-ongoing
6263
steps:
6364
- uses: DataDog/dd-octo-sts-action@08f2144903ced3254a3dafec2592563409ba2aa0 # v1.0.1
6465
id: octo-sts
@@ -77,15 +78,18 @@ jobs:
7778

7879
- name: Check output
7980
run: |
80-
echo "User is permitted: ${{ steps.check.outputs.permitted }}"
81-
echo "Teams: ${{ steps.check.outputs.teams }}"
81+
permitted=${{ steps.check.outputs.permitted }}
82+
if [[ "$permitted" != "true" ]]; then
83+
echo "User is not part of apm-common-components-core"
84+
exit 1
85+
fi
8286
8387
update-release-branch:
8488
permissions:
8589
id-token: write # Enable OIDC
8690
contents: write
8791
runs-on: ubuntu-latest
88-
needs: check-proposal-ongoing
92+
needs: check-membership
8993
steps:
9094
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
9195
id: octo-sts

0 commit comments

Comments
 (0)