Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
Append date to the uploaded artifact
  • Loading branch information
puneetbehl committed Sep 16, 2023
1 parent adaa6a6 commit 196a9b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H%M%S')" >> $GITHUB_ENV
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v3
Expand All @@ -30,7 +32,7 @@ jobs:
- name: Extract branch name
if: success()
id: extract_branch
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
run: echo "value=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
- name: Build Documentation
uses: gradle/gradle-build-action@v2
with:
Expand All @@ -45,8 +47,8 @@ jobs:
if: success()
uses: actions/upload-artifact@v3
with:
name: grails-docs.zip
path: ./build/distributions/grails-docs-*.zip
name: grails-docs-${{ env.NOW }}.zip
path: ./build/distributions/grails-docs-*.*.zip
- name: Determine docs target repository
if: success()
uses: haya14busa/action-cond@v1
Expand Down

0 comments on commit 196a9b6

Please sign in to comment.