-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad02170
commit 843c4b2
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
# Automatically build the project and run any configured tests for every push | ||
# and submitted pull request. This can help catch issues that only occur on | ||
# certain platforms or Java versions, and provides a first line of defence | ||
# against bad commits. | ||
|
||
name: AutoHash | ||
on: [push] | ||
|
||
|
@@ -22,17 +17,20 @@ jobs: | |
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
|
||
- name: Download AutoHasher | ||
working-directory: ./.toolbox | ||
run: curl -O https://raw.githubusercontent.com/Legacy-Edition-Minigames/ToolBox/java/testConfigs/AutoHasher.jar | ||
- 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 AutoHasher.jar --autoHash | ||
run: java -jar Toolbox2.0_noupdater.jar --autoHash | ||
|
||
- name: Delete AutoHasher | ||
working-directory: ./.toolbox | ||
run: rm AutoHasher.jar | ||
run: rm Toolbox2.0_noupdater.jar | ||
|
||
- name: Push changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
|