Skip to content

Commit f7d11f8

Browse files
Merge pull request #161 from adambkaplan/release-pipeline-alignment
feat: Add git-ref to Release Pipeline
2 parents dae2ff5 + f192fce commit f7d11f8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ on:
99
tags:
1010
description: 'Previous tag'
1111
required: true
12+
git-ref:
13+
description: 'Git reference to check out. Use an appropriate release-v* branch name, tag, or commit SHA.'
14+
required: true
15+
default: 'main'
1216
jobs:
1317
release:
14-
if: ${{ github.repository == 'shipwright-io/build' }}
1518
runs-on: ubuntu-latest
1619
permissions:
1720
id-token: write # To be able to get OIDC ID token to sign images.
@@ -25,6 +28,8 @@ jobs:
2528

2629
steps:
2730
- uses: actions/checkout@v4
31+
with:
32+
ref: ${{ github.event.inputs.git-ref }}
2833
- uses: ./.github/actions/setup
2934
- uses: sigstore/cosign-installer@v3
3035
- uses: azure/[email protected]
@@ -44,7 +49,7 @@ jobs:
4449
id: draft_release
4550
uses: actions/create-release@v1
4651
with:
47-
release_name: "Shipwright Build release ${{ github.event.inputs.release }}"
52+
release_name: "Shipwright Triggers release ${{ github.event.inputs.release }}"
4853
tag_name: ${{ github.event.inputs.release }}
4954
body_path: Changes.md
5055
draft: true

0 commit comments

Comments
 (0)