From 38e402a6246358eef3e485feccf66cdd5bf828a9 Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Mon, 10 Feb 2025 12:09:23 -0800 Subject: [PATCH] fix: wait for checks semantic release --- .github/workflows/auto-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 49c83c4bf..f1878cac0 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -13,19 +13,25 @@ jobs: name: Release runs-on: ubuntu-latest permissions: + checks: read # to wait for required checks contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues pull-requests: write # to be able to comment on released pull requests - id-token: write # to enable use of OIDC for npm provenance steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - # TODO: clean-up once we remove LFS + # TODO(CG-10743): clean-up once we remove LFS - name: Remove pre-push hook run: rm -f .git/hooks/pre-push + - name: Wait for required checks + uses: poseidon/wait-for-status-checks@v0.6.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + match_pattern: "(unit-tests|integration-tests)" + - uses: codfish/semantic-release-action@v3 id: semantic env: