Skip to content

Commit

Permalink
ci: trying alternative version-stripping approach
Browse files Browse the repository at this point in the history
  • Loading branch information
ennioVisco committed Jun 17, 2024
1 parent 98aea75 commit bee03d0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ jobs:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
# - name: Strip the 'v' character from the version number
# id: strip
# run: echo "stripped={ echo ${{ needs.infer-version.outputs.version }} | cut -c 2- }" >> "$GITHUB_OUTPUT
# shell: bash
# env:
# OUTPUT: ${{ needs.infer-version.outputs.version }}
- name: Strip the 'v' character from the version number
id: strip
run: echo "stripped={ ${{ needs.infer-version.outputs.version }}" | cut -c 2- } >> "$GITHUB_OUTPUT
shell: bash
env:
OUTPUT: ${{ needs.infer-version.outputs.version }}
run: |
STRIPPED_OUTPUT=$(echo "${{ needs.infer-version.outputs.version }}" | cut -c 2-)
echo "Stripped Output: $STRIPPED_OUTPUT"
# env:
# STRIPPED_OUTPUT: ${{ steps.strip.outputs.stripped }}
- name: Change wrapper permissions
run: chmod +x gradlew
- name: Run gradle publish (MavenCentral)
Expand Down

0 comments on commit bee03d0

Please sign in to comment.