forked from line/centraldogma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for all Armeria artifacts before sending an upgrade PR
- Loading branch information
Showing
1 changed file
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,36 @@ on: | |
type: string | ||
|
||
jobs: | ||
update-armeria-version: | ||
|
||
wait-for-armeria-artifacts: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
artifact: | ||
- armeria-bom | ||
- armeria | ||
- armeria-grpc | ||
- armeria-prometheus1 | ||
- armeria-saml | ||
- armeria-thrift | ||
- armeria-xds | ||
|
||
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" | ||
url: "https://repo.maven.apache.org/maven2/com/linecorp/armeria/${{ matrix.artifact }}/${{ github.event.inputs.armeria_version }}/${{ matrix.artifact }}-${{ github.event.inputs.armeria_version }}.${{ matrix.artifact == 'armeria-bom' && 'bom' || 'jar' }}" | ||
responseCode: 200 | ||
timeout: 18000000 # Timeout before giving up in milliseconds. 5 hours | ||
interval: 60000 # 1 minute | ||
|
||
update-armeria-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Update Armeria version to ${{ inputs.armeria_version }} | ||
run: | | ||
sed -i "s/armeria = \".*\"/armeria = \"${{ inputs.armeria_version }}\"/" dependencies.toml | ||
|
@@ -40,7 +57,7 @@ jobs: | |
with: | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
title: Update Armeria version to ${{ inputs.armeria_version }} | ||
body : '' | ||
body: '' | ||
commit-message: Update Armeria version to ${{ inputs.armeria_version }} | ||
author: Meri Kim <[email protected]> | ||
branch: update-armeria-version | ||
|