Skip to content

Commit 729b5cd

Browse files
Update GHA workflows
1 parent 94fcd58 commit 729b5cd

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.github/workflows/auto_snapshot_update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
build-scan-publish: true
5757
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
5858
build-scan-terms-of-use-agree: "yes"
59+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
60+
cache-read-only: ${{ github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/1.') }}
5961

6062
- name: Migrate mappings for main source set
6163
run: |

.github/workflows/dependency_graph.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ jobs:
3939
build-scan-publish: true
4040
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
4141
build-scan-terms-of-use-agree: "yes"
42+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

.github/workflows/publish.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ permissions:
3636
jobs:
3737
publish:
3838
runs-on: ubuntu-latest
39-
env:
40-
WI_BACKUPS_API_KEY: ${{ secrets.WI_BACKUPS_API_KEY }}
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4239
steps:
4340

4441
- name: Echo distinct ID ${{ inputs.distinct_id }}
@@ -61,6 +58,12 @@ jobs:
6158

6259
- name: Setup Gradle
6360
uses: gradle/actions/setup-gradle@v4
61+
with:
62+
build-scan-publish: true
63+
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
64+
build-scan-terms-of-use-agree: "yes"
65+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
66+
cache-read-only: ${{ github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/1.') }}
6467

6568
- name: Build
6669
run: ./gradlew build --stacktrace --warning-mode=fail
@@ -75,10 +78,14 @@ jobs:
7578
7679
- name: Close milestone
7780
if: ${{ inputs.close_milestone }}
81+
env:
82+
GITHUB_TOKEN: ${{ github.token }}
7883
run: ./gradlew closeMilestone --stacktrace
7984

8085
- name: Upload backups
8186
if: ${{ inputs.upload_backups }}
87+
env:
88+
WI_BACKUPS_API_KEY: ${{ secrets.WI_BACKUPS_API_KEY }}
8289
run: ./gradlew uploadBackups --stacktrace
8390

8491
- name: Publish to GitHub
@@ -91,9 +98,9 @@ jobs:
9198
id: website_inputs
9299
if: ${{ inputs.update_website }}
93100
run: |
94-
echo "wurst_version=$(grep "^mod_version=" gradle.properties | cut -d'=' -f2 | tr -d ' \r' | sed 's/^v//' | sed 's/-MC.*$//')" >> "$GITHUB_OUTPUT"
95-
echo "mc_version=$(grep "^minecraft_version=" gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
96-
echo "fapi_version=$(grep "^fabric_version=" gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
101+
echo "wurst_version=$(grep '^mod_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r' | sed 's/^v//' | sed 's/-MC.*$//')" >> "$GITHUB_OUTPUT"
102+
echo "mc_version=$(grep '^minecraft_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
103+
echo "fapi_version=$(grep '^fabric_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
97104
98105
- name: Trigger website update
99106
if: ${{ inputs.update_website }}

0 commit comments

Comments
 (0)