Skip to content

Commit 9953931

Browse files
committed
Standardize workflow YAML to 6-space indentation style
Normalized all workflows to consistent 6-space style (GitHub Actions standard): - Step uses/with at 6 spaces - Properties (java-version, distribution, etc) at 8 spaces This ensures YAML validity and enables reliable bulk operations.
1 parent 946828a commit 9953931

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12-
with:
12+
with:
1313
fetch-depth: 0
14-
- name: Get Fetch Tags
14+
- name: Get Fetch Tags
1515
run: git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin
1616
if: "!contains(github.ref, 'refs/tags')"
17-
- name: Set up JDK 17
18-
uses: actions/setup-java@v4
19-
with:
20-
java-version: '17'
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '17'
2121
distribution: 'zulu'
22-
- name: Grant execute permission for gradlew
22+
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew
24-
- name: Build with Gradle
24+
- name: Build with Gradle
2525
run: ./gradlew build
26-
- name: Get Release Version
26+
- name: Get Release Version
2727
id: get_version
2828
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
29-
- name: Upload git-plugin jar
29+
- name: Upload git-plugin jar
3030
uses: actions/upload-artifact@v4
31-
with:
31+
with:
3232
# Artifact name
3333
name: Grails-Plugin-${{ steps.get_version.outputs.VERSION }}
3434
# Directory containing files to upload

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ jobs:
1111
name: Upload Release Asset
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout code
14+
- name: Checkout code
1515
uses: actions/checkout@v4
16-
with:
16+
with:
1717
fetch-depth: 0
1818

19-
- name: Set up JDK 11
20-
uses: actions/setup-java@v4
21-
with:
22-
java-version: '11'
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '11'
2323
distribution: 'zulu'
24-
- name: Build with Gradle
24+
- name: Build with Gradle
2525
run: ./gradlew build
26-
- name: Get Release Version
26+
- name: Get Release Version
2727
id: get_version
2828
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
29-
- name: Create Release
29+
- name: Create Release
3030
id: create_release
3131
run: |
3232
gh release create \
@@ -36,7 +36,7 @@ jobs:
3636
build/libs/git-plugin-${{ steps.get_version.outputs.VERSION }}.jar
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
- name: Publish to Maven Central
39+
- name: Publish to Maven Central
4040
run: ./gradlew -PsigningKey=${SIGNING_KEY_B64} -PsigningPassword=${SIGNING_PASSWORD} -PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} publishToSonatype closeAndReleaseSonatypeStagingRepository
4141
env:
4242
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.github/workflows/snapshot-release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
name: Upload Release Asset
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout code
15+
- name: Checkout code
1616
uses: actions/checkout@v4
17-
with:
17+
with:
1818
fetch-depth: 0
1919

20-
- name: Set up JDK 11
21-
uses: actions/setup-java@v4
22-
with:
23-
java-version: '11'
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '11'
2424
distribution: 'zulu'
25-
- name: Build with Gradle
25+
- name: Build with Gradle
2626
run: ./gradlew build
27-
- name: Get Release Version
27+
- name: Get Release Version
2828
id: get_version
2929
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
30-
- name: Publish to Maven Central
30+
- name: Publish to Maven Central
3131
run: ./gradlew -PsigningKey=${SIGNING_KEY_B64} -PsigningPassword=${SIGNING_PASSWORD} -PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} publishToSonatype closeAndReleaseSonatypeStagingRepository
3232
env:
3333
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

0 commit comments

Comments
 (0)