From ca5339d4eeca305b797e3195ecd2a52ad8da496a Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 6 Nov 2023 16:58:35 -0500 Subject: [PATCH] Fix checkout for common repo --- .../spring-artifactory-gradle-release-staging.yml | 11 ++++++----- .../workflows/spring-artifactory-gradle-snapshot.yml | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/spring-artifactory-gradle-release-staging.yml b/.github/workflows/spring-artifactory-gradle-release-staging.yml index a694abd..7a79573 100644 --- a/.github/workflows/spring-artifactory-gradle-release-staging.yml +++ b/.github/workflows/spring-artifactory-gradle-release-staging.yml @@ -23,6 +23,10 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} + - name: Set up Gradle uses: spring-io/spring-gradle-build-action@v2 @@ -30,13 +34,10 @@ jobs: uses: actions/checkout@v3 with: repository: spring-projects/spring-integration-aws + path: init - name: Copy the artifactory-init.gradle - run: cp .github/artifactory-init.gradle $GRADLE_USER_HOME/init.d - - - uses: actions/checkout@v3 - with: - token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} + run: cp init/.github/artifactory-init.gradle $GRADLE_USER_HOME/init.d - uses: jfrog/setup-jfrog-cli@v3 with: diff --git a/.github/workflows/spring-artifactory-gradle-snapshot.yml b/.github/workflows/spring-artifactory-gradle-snapshot.yml index 988c8da..7a3d9c8 100644 --- a/.github/workflows/spring-artifactory-gradle-snapshot.yml +++ b/.github/workflows/spring-artifactory-gradle-snapshot.yml @@ -20,6 +20,8 @@ jobs: name: CI Build SNAPSHOT for ${{ github.ref_name }} steps: + - uses: actions/checkout@v3 + - name: Set up Gradle uses: spring-io/spring-gradle-build-action@v2 @@ -27,11 +29,10 @@ jobs: uses: actions/checkout@v3 with: repository: spring-projects/spring-integration-aws + path: init - name: Copy the artifactory-init.gradle - run: cp .github/artifactory-init.gradle $GRADLE_USER_HOME/init.d - - - uses: actions/checkout@v3 + run: cp init/.github/artifactory-init.gradle $GRADLE_USER_HOME/init.d - uses: jfrog/setup-jfrog-cli@v3 with: