Skip to content

Commit ff88955

Browse files
committed
cleanup publish
1 parent 49a5981 commit ff88955

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,8 @@ on:
1313
- "true"
1414

1515
jobs:
16-
# # First check if CI workflow succeeded
17-
# check-ci:
18-
# runs-on: ubuntu-latest
19-
# steps:
20-
# - name: Check CI workflow status
21-
# uses: actions/github-script@v7
22-
# id: check-status
23-
# with:
24-
# script: |
25-
# const ref = context.sha;
26-
# const workflow_name = 'Build and Test';
27-
28-
# const workflow_runs = await github.rest.actions.listWorkflowRuns({
29-
# owner: context.repo.owner,
30-
# repo: context.repo.repo,
31-
# workflow_id: workflow_name,
32-
# head_sha: ref,
33-
# });
34-
35-
# const latest_run = workflow_runs.data.workflow_runs[0];
36-
# if (!latest_run || latest_run.conclusion !== 'success') {
37-
# core.setFailed('CI workflow has not succeeded for this commit');
38-
# return false;
39-
# }
40-
# return true;
41-
4216
publish:
4317
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
44-
# needs: check-ci
4518
runs-on: ubuntu-latest
4619
permissions:
4720
id-token: write
@@ -55,6 +28,7 @@ jobs:
5528
github_token: ${{ secrets.GITHUB_TOKEN }}
5629
workflow: build-test.yml
5730
commit: ${{ github.event.workflow_run.head_sha }}
31+
workflow_conclusion: success
5832
path: artifact-download
5933

6034
# Create dist directory

0 commit comments

Comments
 (0)