-
Notifications
You must be signed in to change notification settings - Fork 1.1k
48 lines (40 loc) · 1.54 KB
/
verify-staged-artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Verify Staged Artifacts
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release version like 5.0.0-M1, 5.1.0-RC1, 5.2.0 etc.'
required: true
type: string
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
jobs:
verify-staged-with-samples:
runs-on: ubuntu-latest
steps:
- name: Checkout Samples Repo
uses: actions/checkout@v4
with:
repository: spring-projects/spring-integration-samples
ref: ${{ github.ref_name }}
show-progress: false
- name: Set up Gradle
uses: spring-io/spring-gradle-build-action@v2
- name: Prepare Samples project against Staging
run: |
printf "allprojects {
repositories {
maven {
url 'https://repo.spring.io/libs-staging-local'
credentials {
username = '$ARTIFACTORY_USERNAME'
password = '$ARTIFACTORY_PASSWORD'
}
}
}
}" > staging-repo-init.gradle
sed -i "1,/springIntegrationVersion.*/s/springIntegrationVersion.*/springIntegrationVersion='${{ inputs.releaseVersion }}'/" build.gradle
- name: Verify Spring Integration Samples against staged release
run: gradle check --init-script staging-repo-init.gradle