Skip to content

Commit 76417a3

Browse files
committed
Refine GitHub Actions workflows.
See #3362
1 parent 49182ff commit 76417a3

4 files changed

Lines changed: 8 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
uses: spring-projects/spring-data-build/actions/maven-build@4.0.x
3131
with:
3232
additional-options: -DrunLongTests=true
33+
settings-xml: '${{ vars.SETTINGS_XML }}'

.github/workflows/project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
Inbox:
2020
runs-on: ubuntu-latest
21-
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request == null && !contains(join(github.event.issue.labels.*.name, ', '), 'dependency-upgrade') && !contains(github.event.issue.title, 'Release ')
21+
if: vars.PROJECT_CARDS_ENABLED == 'true' && github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request == null && !contains(join(github.event.issue.labels.*.name, ', '), 'dependency-upgrade') && !contains(github.event.issue.title, 'Release ')
2222
steps:
2323
- name: Create or Update Issue Card
2424
uses: actions/add-to-project@v1.0.2
@@ -27,7 +27,7 @@ jobs:
2727
github-token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
2828
Pull-Request:
2929
runs-on: ubuntu-latest
30-
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null
30+
if: vars.PROJECT_CARDS_ENABLED == 'true' && github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null
3131
steps:
3232
- name: Create or Update Pull Request Card
3333
uses: actions/add-to-project@v1.0.2
@@ -36,7 +36,7 @@ jobs:
3636
github-token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
3737
Feedback-Provided:
3838
runs-on: ubuntu-latest
39-
if: github.repository_owner == 'spring-projects' && github.event_name == 'issue_comment' && github.event.action == 'created' && github.actor != 'spring-projects-issues' && github.event.pull_request == null && github.event.issue.state == 'open' && contains(toJSON(github.event.issue.labels), 'waiting-for-feedback')
39+
if: vars.PROJECT_CARDS_ENABLED == 'true' && github.repository_owner == 'spring-projects' && github.event_name == 'issue_comment' && github.event.action == 'created' && github.actor != 'spring-projects-issues' && github.event.pull_request == null && github.event.issue.state == 'open' && contains(toJSON(github.event.issue.labels), 'waiting-for-feedback')
4040
steps:
4141
- name: Update Project Card
4242
uses: actions/add-to-project@v1.0.2

.github/workflows/snapshots.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ jobs:
2828
build-name: 'spring-data-redis'
2929
username: '${{ secrets.ARTIFACTORY_USERNAME }}'
3030
password: '${{ secrets.ARTIFACTORY_PASSWORD }}'
31+
context-url: '${{ vars.ARTIFACTORY_CONTEXT_URL }}'
32+
repository: '${{ vars.ARTIFACTORY_REPOSITORY }}'
33+
project: '${{ vars.ARTIFACTORY_PROJECT }}'
34+
settings-xml: '${{ vars.SETTINGS_XML }}'

settings.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)