Skip to content

Commit 146f348

Browse files
committed
fix: Still some issues with committing the files. Looking for workaround or fix. Skipping this step for now.
1 parent 9ae4c5b commit 146f348

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/buildAndPublish.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -187,25 +187,27 @@ jobs:
187187
echo "::warning::Path not set or directory does not exist. Tried looking for $path/changelog."
188188
fi
189189
190-
# Check if files were created and create a commaseparated list of them e.g. "releases/release_1/file1.md,releases/release_1/file2.yml"
191-
files=$(find "releases/${RELEASE_NAME}" -maxdepth 1 -type f \( -name "*.md" -o -name "*.yml" \) -printf '%p,' | sed 's/,$//')
192-
if [ -z "$files" ]; then
193-
echo "::warning::No files found."
194-
else
195-
echo "${yellow}${bold}Files created:${reset} $files"
196-
fi
197-
echo "files=$files" >> "$GITHUB_OUTPUT"
198-
199-
git config --global --add safe.directory "$GITHUB_WORKSPACE"
190+
# Not needed for now.
191+
# # Check if files were created and create a commaseparated list of them e.g. "releases/release_1/file1.md,releases/release_1/file2.yml"
192+
# files=$(find "releases/${RELEASE_NAME}" -maxdepth 1 -type f \( -name "*.md" -o -name "*.yml" \) -printf '%p,' | sed 's/,$//')
193+
# if [ -z "$files" ]; then
194+
# echo "::warning::No files found."
195+
# else
196+
# echo "${yellow}${bold}Files created:${reset} $files"
197+
# fi
198+
# echo "files=$files" >> "$GITHUB_OUTPUT"
199+
200+
# git config --global --add safe.directory "$GITHUB_WORKSPACE"
200201
echo "::endgroup::"
201202
202-
- name: Commit Release Files
203-
if: steps.build.outputs.artifactsFound == 'true'
204-
uses: navikt/sf-platform/.github/actions/commitFiles@ff060cd07e4bcb96889765a5a4a08fcaf3f8b920
205-
with:
206-
files: ${{ steps.create_release_files.outputs.files }}
207-
commitMessage: 'Release files for "${{ env.RELEASE_NAME }}"'
208-
token: ${{ env.GH_AUTH_TOKEN }}
203+
# Not needed for now.
204+
# - name: Commit Release Files
205+
# if: steps.build.outputs.artifactsFound == 'true'
206+
# uses: navikt/sf-platform/.github/actions/commitFiles@ff060cd07e4bcb96889765a5a4a08fcaf3f8b920
207+
# with:
208+
# files: ${{ steps.create_release_files.outputs.files }}
209+
# commitMessage: 'Release files for "${{ env.RELEASE_NAME }}"'
210+
# token: ${{ env.GH_AUTH_TOKEN }}
209211

210212
- name: Create Github Release
211213
if: steps.build.outputs.artifactsFound == 'true'

0 commit comments

Comments
 (0)