-
-
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.
chore: Several Improvements to Workflow. (#113)
* Update main.yml 1. Add new output and env for project_name 2. Cache Gradle Dependencies 3. Remove hardcoded values from Discord Action 4. Add deployed by 5. Add a action 'common-setup' to stop duplicating self * Create action.yml * Missed the new printProjectName task
- Loading branch information
Showing
3 changed files
with
69 additions
and
17 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,21 @@ | ||
name: 'Common Setup' | ||
description: 'Set up JDK and grant execute permissions for gradlew' | ||
|
||
inputs: | ||
java-version: | ||
description: 'Java version' | ||
required: true | ||
default: '17' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ inputs.java-version }} | ||
distribution: 'zulu' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
shell: bash |
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