Use secrets.GH_ACTIONS_REPO_TOKEN
This commit is contained in:
11
.github/workflows/ci-snapshot.yml
vendored
11
.github/workflows/ci-snapshot.yml
vendored
@@ -19,12 +19,11 @@ jobs:
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: adopt
|
||||
java-version: 17
|
||||
cache: gradle
|
||||
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: spring-io/spring-gradle-build-action@v2
|
||||
|
||||
- uses: jfrog/setup-jfrog-cli@v3
|
||||
with:
|
||||
@@ -47,6 +46,6 @@ jobs:
|
||||
|
||||
- name: Build and Publish
|
||||
run: |
|
||||
jf gradle build dist artifactoryPublish -Duser.name=spring-builds+github
|
||||
jf gradle build dist artifactoryPublish
|
||||
jf rt build-publish
|
||||
|
||||
|
||||
15
.github/workflows/release-staging.yml
vendored
15
.github/workflows/release-staging.yml
vendored
@@ -24,12 +24,11 @@ jobs:
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: adopt
|
||||
java-version: 17
|
||||
cache: gradle
|
||||
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: spring-io/spring-gradle-build-action@v2
|
||||
|
||||
- uses: jfrog/setup-jfrog-cli@v3
|
||||
with:
|
||||
@@ -56,13 +55,13 @@ jobs:
|
||||
|
||||
- name: Build and Publish
|
||||
run: |
|
||||
jf gradle build dist artifactoryPublish -Duser.name=spring-builds+github
|
||||
jf gradle build dist artifactoryPublish
|
||||
jf rt build-publish
|
||||
|
||||
- name: Tag Release and Next Development Version
|
||||
run: |
|
||||
git config user.name 'github-actions[bot]'
|
||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git config --global user.name 'Spring Builds'
|
||||
git config --global user.email 'builds@springframework.org'
|
||||
git commit -a -m "[artifactory-release] Release version ${{ inputs.releaseVersion }}"
|
||||
git tag "v${{ inputs.releaseVersion }}"
|
||||
git push --tags origin
|
||||
|
||||
Reference in New Issue
Block a user