Skip to content

Commit d00d2d4

Browse files
committed
Må hente artifacts for å lage change log
1 parent fbafb0f commit d00d2d4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/createRelease.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
container: ghcr.io/flxbl-io/sfp:${{ vars.SFP_CONTAINER_VERSION || 'latest' }}
3939
permissions:
4040
contents: read
41+
packages: read
4142
env:
4243
SFP_LOG_LEVEL: ${{ vars.SFP_LOG_LEVEL || 'INFO' }}
4344
GH_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -55,6 +56,11 @@ jobs:
5556
run: |
5657
echo "RELEASE_NAME=sf-platform_$(date +%s%3N)" >> "$GITHUB_ENV"
5758
59+
- name: Authenticate Node
60+
uses: actions/setup-node@v4
61+
with:
62+
registry-url: "https://npm.pkg.github.com"
63+
5864
- name: Checkout
5965
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
6066
with:
@@ -103,6 +109,13 @@ jobs:
103109
echo "::endgroup::"
104110
105111
echo "::group::Generating changelog"
112+
113+
sfp artifacts fetch \
114+
--releasedefinition "releases/${RELEASE_NAME}/${RELEASE_NAME}.yml" \
115+
--npm \
116+
--scope "${SCOPE}" \
117+
--loglevel "${SFP_LOG_LEVEL}"
118+
106119
changelogOutput=$(sfp changelog generate \
107120
--branchname main \
108121
--releasename "${RELEASE_NAME}" \

0 commit comments

Comments
 (0)