-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Armin Samii <armin.samii@gmail.com> Co-authored-by: HEdingfield <hylton@groupagree.com>
- Loading branch information
1 parent
64608c6
commit 477994d
Showing
10 changed files
with
215 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Run Gradle command and create SHA512" | ||
description: "Runs a Gradle command and creates SHA512 hashes" | ||
|
||
inputs: | ||
gradle-command: | ||
description: "The Gradle command to run" | ||
required: true | ||
intermediate-filepath: | ||
description: "The initial path of the output file" | ||
required: true | ||
final-filepath: | ||
description: "The desired final path of the output file" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Run Gradle command" | ||
shell: bash | ||
run: | | ||
./gradlew ${{ inputs.gradle-command }} | ||
- name: "Rename output file" | ||
shell: bash | ||
run: mv ${{ inputs.intermediate-filepath }} ${{ inputs.final-filepath }} | ||
|
||
- name: "Generate SHA512 for Linux" | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
run: sha512sum ${{ inputs.final-filepath }} > ${{ inputs.final-filepath }}.sha512 | ||
- name: "Generate SHA512 for Windows" | ||
shell: bash | ||
if: runner.os == 'Windows' | ||
run: certutil -hashfile ${{ inputs.final-filepath }} SHA512 >> ${{ inputs.final-filepath }}.sha512 | ||
- name: "Generate SHA512 for OSX" | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: openssl dgst -sha512 > ${{ inputs.final-filepath }}.sha512 |
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
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
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
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
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
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
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.