-
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (30 loc) · 1.04 KB
/
autoHash.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: AutoHash
on: [push]
jobs:
AutoHash:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- uses: robinraju/[email protected]
with:
repository: 'Legacy-Edition-Minigames/ToolBox'
latest: true
fileName: 'Toolbox2.0_noupdater.jar'
out-file-path: '.toolbox'
- name: Hash Files
working-directory: ./.toolbox
run: java -jar Toolbox2.0_noupdater.jar --autoHash
- name: Delete AutoHasher
working-directory: ./.toolbox
run: rm Toolbox2.0_noupdater.jar
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto generate hash for dependency files