Skip to content

Commit e439e34

Browse files
committed
1 parent 1ebd195 commit e439e34

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
branches:
2323
- master
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
test-OpenJDK:
2730
name: "JDK ${{ matrix.java }} on ${{ matrix.os }}"

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ jobs:
8989
build-native-image:
9090
name: "Build GraalVM native-image on ${{ matrix.os }}"
9191
runs-on: ${{ matrix.os }}
92+
defaults:
93+
run:
94+
shell: bash
9295
permissions:
9396
contents: write
9497
needs: build-maven-jars
@@ -116,13 +119,16 @@ jobs:
116119
native-image-job-reports: "true"
117120
cache: "maven"
118121
- name: Bump Version Number
119-
run: mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${{ github.event.inputs.version }}"
122+
env:
123+
GITHUB_EVENT_INPUTS_VERSION: ${{ github.event.inputs.version }}
124+
run: mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${GITHUB_EVENT_INPUTS_VERSION}"
120125
- name: "Native"
121126
run: mvn -Pnative -DskipTests package -pl core -am
122127
- name: "Move outputs"
123-
run: cp core/target/google-java-format${{ env.EXTENSION }} google-java-format_${{ env.SUFFIX }}${{ env.EXTENSION }}
128+
run: cp core/target/google-java-format${EXTENSION} google-java-format_${SUFFIX}${EXTENSION}
124129
- name: "Upload native-image"
125130
env:
126131
GH_TOKEN: ${{ github.token }}
127132
GH_REPO: ${{ github.repository }}
128-
run: gh release upload "v${{ github.event.inputs.version }}" "google-java-format_${{ env.SUFFIX }}${{ env.EXTENSION }}"
133+
GITHUB_EVENT_INPUTS_VERSION: ${{ github.event.inputs.version }}
134+
run: gh release upload "v${GITHUB_EVENT_INPUTS_VERSION}" "google-java-format_${SUFFIX}${EXTENSION}"

0 commit comments

Comments
 (0)