Skip to content

Commit cb582d6

Browse files
committed
[CI] Temp mods to test release pipeline
- Allow SNAPSHOT versions to go through the release process. It is harmless as the SNAPSHOT will already be deployed to artifactory as part of the regular CI pipeline.
1 parent 34ca8b9 commit cb582d6

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
permissions:
6464
contents: write
6565
timeout-minutes: 90
66-
if: ${{ !endsWith(needs.build_and_deploy.outputs.project_version, '-SNAPSHOT') }}
66+
#if: ${{ endsWith(needs.build_and_deploy.outputs.project_version, '-SNAPSHOT') }}
6767
env:
6868
REPO: ${{ github.repository }}
6969
BRANCH: ${{ github.ref_name }}
@@ -78,6 +78,16 @@ jobs:
7878
with:
7979
java-version: '17'
8080
distribution: 'temurin'
81+
- name: Wait for Artifactory Snapshot Artifacts
82+
if: ${{ contains(needs.build_and_deploy.outputs.project_version, '-SNAPSHOT') }}
83+
run: |
84+
echo "Wait for artifacts of $REPO@$VERSION to appear on Artifactory."
85+
until curl -f -s https://repo.spring.io/artifactory/snapshot/org/springframework/pulsar/spring-pulsar/$VERSION/ > /dev/null
86+
do
87+
sleep 30
88+
echo "."
89+
done
90+
echo "Artifacts for $REPO@$VERSION have been released to Artifactory."
8191
- name: Wait for Artifactory Artifacts
8292
if: ${{ contains(needs.build_and_deploy.outputs.project_version, '-RC') || contains(needs.build_and_deploy.outputs.project_version, '-M') }}
8393
run: |
@@ -89,7 +99,7 @@ jobs:
8999
done
90100
echo "Artifacts for $REPO@$VERSION have been released to Artifactory."
91101
- name: Wait for Maven Central Artifacts
92-
if: ${{ !contains(needs.build_and_deploy.outputs.project_version, '-RC') && !contains(needs.build_and_deploy.outputs.project_version, '-M') }}
102+
if: ${{ !contains(needs.build_and_deploy.outputs.project_version, '-SNAPSHOT') && !contains(needs.build_and_deploy.outputs.project_version, '-RC') && !contains(needs.build_and_deploy.outputs.project_version, '-M') }}
93103
run: |
94104
echo "Wait for artifacts of $REPO@$VERSION to appear on Maven Central."
95105
until curl -f -s https://repo1.maven.org/maven2/org/springframework/pulsar/spring-pulsar/$VERSION/ > /dev/null
@@ -103,7 +113,7 @@ jobs:
103113
git config user.name 'github-actions[bot]'
104114
git config user.email 'github-actions[bot]@users.noreply.github.com'
105115
- name: Tag Release
106-
if: ${{ contains(needs.build_and_deploy.outputs.project_version, '-RC') || contains(needs.build_and_deploy.outputs.project_version, '-M') }}
116+
if: ${{ contains(needs.build_and_deploy.outputs.project_version, '-SNAPSHOT') || contains(needs.build_and_deploy.outputs.project_version, '-RC') || contains(needs.build_and_deploy.outputs.project_version, '-M') }}
107117
run: |
108118
echo "Tagging $REPO@$VERSION release."
109119
git tag $VERSION

.github/workflows/github-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
gh issue list \
3838
--repo spring-projects-experimental/spring-pulsar \
3939
--state all --json number,title,labels \
40-
--search milestone:$releaseVersion \
40+
--search label:aot-native \
4141
--jq '{issues:map(select((.labels | length == 0) or (any(.labels[].name; startswith("automation/rlnotes")|not))) + {repo:"spring-projects-experimental/spring-pulsar"})}' \
4242
> $RELEASE_NOTES_ISSUES
4343

0 commit comments

Comments
 (0)