Skip to content

Commit db2243d

Browse files
jongioCopilot
andcommitted
fix: reorder release steps - registry before cosign/SBOM
Move 'Update registry' step before cosign signing and SBOM generation. The azd x publish command cannot parse SBOM and signature files, so it must run before those are uploaded. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9f39653 commit db2243d

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,32 @@ jobs:
300300
env:
301301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
302302

303+
- name: Update registry
304+
working-directory: cli
305+
run: |
306+
cd ..
307+
git pull
308+
cd cli
309+
310+
azd x publish \
311+
--registry ../registry.json \
312+
--version "${{ steps.version.outputs.next }}" \
313+
--repo "${{ github.repository }}"
314+
315+
cd ..
316+
317+
if git diff --quiet registry.json; then
318+
echo "No changes to registry.json"
319+
else
320+
git config user.name "github-actions[bot]"
321+
git config user.email "github-actions[bot]@users.noreply.github.com"
322+
git add registry.json
323+
git commit -m "chore: update registry for v${{ steps.version.outputs.next }}"
324+
git push
325+
fi
326+
env:
327+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
328+
303329
- name: Install cosign
304330
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3
305331

@@ -346,32 +372,6 @@ jobs:
346372
env:
347373
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
348374

349-
- name: Update registry
350-
working-directory: cli
351-
run: |
352-
cd ..
353-
git pull
354-
cd cli
355-
356-
azd x publish \
357-
--registry ../registry.json \
358-
--version "${{ steps.version.outputs.next }}" \
359-
--repo "${{ github.repository }}"
360-
361-
cd ..
362-
363-
if git diff --quiet registry.json; then
364-
echo "No changes to registry.json"
365-
else
366-
git config user.name "github-actions[bot]"
367-
git config user.email "github-actions[bot]@users.noreply.github.com"
368-
git add registry.json
369-
git commit -m "chore: update registry for v${{ steps.version.outputs.next }}"
370-
git push
371-
fi
372-
env:
373-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
374-
375375
- name: Notify azd-extensions
376376
if: success()
377377
run: |

0 commit comments

Comments
 (0)