Skip to content

Commit 8088dac

Browse files
Merge #428
428: Update publishing workflow r=curquiza a=Strift # Pull Request ## Related issue Error running publishing job: https://github.com/meilisearch/meilisearch-dart/actions/runs/14748878787 > [Error](https://github.com/meilisearch/meilisearch-dart/actions/runs/14748878787/workflow) > reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps ## What does this PR do? - Reference the workflow at the `job.*.uses` key level - Separate the "check release" in a different job Thank you so much for contributing to Meilisearch! Co-authored-by: Strift <lau.cazanove@gmail.com>
2 parents 93dd62f + 0640d1d commit 8088dac

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publish.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ on:
66
- v*
77

88
jobs:
9-
publishing:
10-
permissions:
11-
id-token: write # Required for authentication using OIDC
9+
check_release:
1210
runs-on: ubuntu-latest
1311
steps:
1412
- name: Checkout
1513
uses: actions/checkout@v4
1614
- name: Check release validity
1715
run: sh .github/scripts/check-release.sh
18-
- name: Publish
19-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
16+
17+
publishing:
18+
needs: check_release
19+
permissions:
20+
id-token: write # Required for authentication using OIDC
21+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

0 commit comments

Comments
 (0)