Skip to content

Commit

Permalink
Some GH action refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Oct 19, 2023
1 parent 2705936 commit 126e07a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build_snapshot:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects'
name: CI Build ${{ github.ref_name }} SNAPSHOT
name: CI Build $GITHUB_REF_NAME SNAPSHOT
steps:

- uses: actions/checkout@v3
Expand All @@ -42,18 +42,11 @@ jobs:
--server-id-deploy repo.spring.io \
--repo-resolve snapshot \
--repo-deploy snapshot
echo JFROG_CLI_BUILD_NAME=spring-integration-aws-${{ github.ref_name }} >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=${GITHUB_REPOSITORY#*/}-$GITHUB_REF_NAME >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build and Publish
run: |
jf gradle build dist artifactoryPublish -Duser.name=spring-builds+github
jf build-publish
jf rt build-publish
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '**/build/reports/tests/**/*.*'
retention-days: 3
15 changes: 6 additions & 9 deletions .github/workflows/pr-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: adopt
java-version: 17
cache: gradle

- name: Run Gradle
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
debug: false
concurrent: true
gradle-build-scan-report: false
arguments: check

- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '*/build/reports/tests/**/*.*'
retention-days: 3

0 comments on commit 126e07a

Please sign in to comment.