Skip to content

Commit 3f238db

Browse files
authored
Merge pull request #197 from advanced-security/copilot/sub-pr-196
Fix Gradle 9.x Provider evaluation in CI workflow
2 parents 688907c + 1bb1383 commit 3f238db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
id: properties
4646
shell: bash
4747
run: |
48-
PROPERTIES="$(./gradlew properties --console=plain -q)"
49-
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
48+
VERSION="$(grep "^pluginVersion[ ]*=" gradle.properties | cut -f2- -d '=' | tr -d ' ')"
5049
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
5150
5251
echo "version=$VERSION" >> $GITHUB_OUTPUT
@@ -69,12 +68,14 @@ jobs:
6968
FILENAME=`ls *.zip`
7069
unzip "$FILENAME" -d content
7170
71+
FILENAME=${FILENAME:0:-4} | sed 's/[(?)]//g'
72+
7273
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
7374
7475
- name: Upload artifact
7576
uses: actions/upload-artifact@v6
7677
with:
77-
name: ${{ steps.artifact.outputs.filename }}
78+
name: 'SARIF-viewer-provider'
7879
path: ./build/distributions/content/*/*
7980

8081
verify:

0 commit comments

Comments
 (0)