Skip to content

Commit

Permalink
Update Armeria version when available (#919)
Browse files Browse the repository at this point in the history
Motivation:

Currently, `update-armeria-version.yml` is triggered right after the
publication of Armeria artifacts has done. As it takes some time to
replicate the artifacts to Maven Central from OSS Sonatype, the PR maded
by `update-armeria-version.yml` always fails.

Modifications:

- Add a new step for waiting until Armeria artifacts are available in
Maven Central.

Result:

Enhanced automation
  • Loading branch information
ikhoon authored Feb 26, 2024
1 parent ac1e8c1 commit a5eb412
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/update-armeria-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Wait for Armeria artifacts to be available
uses: nev7n/wait_for_response@v1
with:
url: "https://repo.maven.apache.org/maven2/com/linecorp/armeria/armeria-bom/${{ inputs.armeria_version }}/armeria-bom-${{ inputs.armeria_version }}.pom"
responseCode: 200
timeout: 18000000 # Timeout before giving up in milliseconds. 5 hours
interval: 60000 # 1 minute

- name: Update Armeria version to ${{ inputs.armeria_version }}
run: |
sed -i "s/armeria = \".*\"/armeria = \"${{ inputs.armeria_version }}\"/" dependencies.toml
Expand Down

0 comments on commit a5eb412

Please sign in to comment.