We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2aa18 commit 08df742Copy full SHA for 08df742
1 file changed
.github/workflows/publish-preview.yml
@@ -166,11 +166,20 @@ jobs:
166
with:
167
name: preview-build-artifacts
168
169
+ - name: Resolve GitHub tools ref
170
+ id: github-tools-ref
171
+ run: |
172
+ # github.workflow_ref contains e.g. "Owner/repo/.github/workflows/file.yml@refs/heads/branch"
173
+ ref="${WORKFLOW_REF##*@}"
174
+ echo "ref=$ref" >> "$GITHUB_OUTPUT"
175
+ env:
176
+ WORKFLOW_REF: ${{ github.workflow_ref }}
177
+
178
- name: Checkout GitHub tools repository
179
uses: actions/checkout@v5
180
181
repository: MetaMask/github-tools
- ref: ${{ github.workflow_sha }}
182
+ ref: ${{ steps.github-tools-ref.outputs.ref }}
183
path: ./.github-tools
184
185
# The artifact package.json files come from the PR branch.
0 commit comments