Skip to content

Commit 4358949

Browse files
authored
More fixes for release action (#3)
1 parent 254101e commit 4358949

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88

99
permissions:
1010
contents: write # we need this to be able to push tags
11-
11+
env:
12+
OCI_URL: ghcr.io/openmcp-project
13+
1214
jobs:
1315
release_tag:
1416
name: Release version
@@ -51,29 +53,35 @@ jobs:
5153
exit 0
5254
5355
- name: Login to GitHub Container Registry
56+
if: ${{ env.SKIP != 'true' }}
5457
uses: docker/login-action@v3
5558
with:
5659
registry: ghcr.io
5760
username: ${{ github.actor }}
5861
password: ${{ secrets.GITHUB_TOKEN }}
5962

6063
- name: setup OCM
64+
if: ${{ env.SKIP != 'true' }}
6165
uses: open-component-model/ocm-setup-action@main
6266

6367
- name: Create OCM CTF
68+
if: ${{ env.SKIP != 'true' }}
6469
run: |
6570
ocm add componentversions --create \
6671
--file openmcp-ctf component-constructor.yaml \
6772
--settings components-versions.yaml -- OPENMCP_VERSION=${{ env.version }}
6873
6974
- name: Build Changelog
75+
if: ${{ env.SKIP != 'true' }}
7076
id: constructed_release
7177
run: |
7278
cat hack/release-body.tpl > RELEASE_BODY.md
7379
echo "${{ github.event.pull_request.body }}" >> RELEASE_BODY.md
7480
echo -e "## Components:\n" >> RELEASE_BODY.md
7581
./hack/generate_release_notes.sh openmcp-ctf >> RELEASE_BODY.md
76-
82+
env:
83+
GH_TOKEN: ${{ github.token }}
84+
7785
- name: Create Git tag
7886
if: ${{ env.SKIP != 'true' }}
7987
run: |
@@ -104,5 +112,6 @@ jobs:
104112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105113

106114
- name: Push CTF
115+
if: ${{ env.SKIP != 'true' }}
107116
run: |
108117
ocm transfer ctf --overwrite ./openmcp-ctf/ ${{ env.OCI_URL }}

0 commit comments

Comments
 (0)