Skip to content

Commit

Permalink
Update Workflow Config
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Dec 18, 2023
1 parent 24a9cbf commit b131ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
id: check_release_drafter
run: |
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false")
echo ::set-output name=has_release_drafter::${has_release_drafter}
echo "has_release_drafter=${has_release_drafter}" >> $GITHUB_OUTPUT
- name: Extract branch name
id: extract_branch
run: echo ::set-output name=value::${GITHUB_REF:11}
run: echo "value=${GITHUB_REF:11}" >> $GTIHUB_OUTPUT
# If it has release drafter:
- uses: release-drafter/release-drafter@v5
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
release_version: ${{ steps.release_version.outputs.value }}
permissions:
contents: write
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
Expand All @@ -28,13 +26,11 @@ jobs:
java-version: '11'
- name: Set the current release version
id: release_version
continue-on-error: true
run: |
echo "Update grailsVersion to ${{steps.release_version.outputs.value}}"
sed -i "s/^grailsVersion.*$/grailsVersion\=${{ steps.release_version.outputs.value }}/" gradle.properties
echo ::set-output name=value::${GITHUB_REF:11}
sed -i "s/^grailsVersion.*$/grailsVersion\=${GITHUB_REF:11}/" gradle.properties
echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- uses: stefanzweifel/[email protected]
continue-on-error: true
with:
commit_message: Update grailsVersion to ${{ steps.release_version.outputs.value }}
commit_user_name: ${{ env.GIT_USER_NAME }}
Expand Down

0 comments on commit b131ac4

Please sign in to comment.