File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ jobs:
103103 if ${{ inputs.release_name == 'latest' }}; then
104104 COMMIT_SHA=$(curl -s "https://api.github.com/repos/google/watchface/git/ref/tags/${{ inputs.release_name }}" | jq -r '.object.sha')
105105 SHORT_COMMIT_SHA=$(echo "$COMMIT_SHA" | cut -c -7)
106- #VERSION="$VERSION-$SHORT_COMMIT_SHA-SNAPSHOT"
107- VERSION="$VERSION-SNAPSHOT"
106+ VERSION="$VERSION-$SHORT_COMMIT_SHA-SNAPSHOT"
108107 fi
109108 echo "::set-output name=final_version::$VERSION"
110109 - name : Determine artefact ID
@@ -113,7 +112,6 @@ jobs:
113112 FILE_NAME="${{ matrix.jar_file }}"
114113 FILE_NAME_WITHOUT_EXTENSION="${FILE_NAME%.*}"
115114 echo "::set-output name=artefact_id::$FILE_NAME_WITHOUT_EXTENSION"
116-
117115 - name : Check if Maven package already exists
118116 id : check_exists
119117 run : |
@@ -122,9 +120,7 @@ jobs:
122120
123121 METADATA_URL="https://maven.pkg.github.com/google/watchface/com.google.watchface/${ARTIFACT_ID}/${VERSION}/maven-metadata.xml"
124122
125- TOKEN="${{ secrets.GITHUB_TOKEN }}"
126-
127- if curl -s -f -o /dev/null -H "Authorization: Bearer $TOKEN" "$METADATA_URL"; then
123+ if curl -s -f -o /dev/null -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "$METADATA_URL"; then
128124 echo "Maven package with version $VERSION already exists."
129125 else
130126 echo "Maven package with version $VERSION does not exist."
You can’t perform that action at this time.
0 commit comments