-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yuvraj
committed
Jun 29, 2022
1 parent
af86ef3
commit d705661
Showing
2 changed files
with
37 additions
and
42 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 |
---|---|---|
|
@@ -110,11 +110,43 @@ jobs: | |
echo "::set-output name=currentTag::$CURRENT_TAG" | ||
upgrade: | ||
name: Update package.json | ||
needs: [check_for_tag] | ||
uses: ./upgrade_automation.yml | ||
with: | ||
component: flyteconsole | ||
name: Upgrade Flyteconsole version | ||
runs-on: ubuntu-latest | ||
needs: | ||
- check_for_tag | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Update release | ||
run: | | ||
FLYTECONSOLE_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flyteconsole/releases/latest" | jq -r .tag_name) | ||
sed -e 's/"version": [^\"]*"/"version": "$FLYTECONSOLE_VERSION"/g' packages/zapp/console/package.json | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.FLYTE_BOT_PAT }} | ||
commit-message: Update Flyteconsole version | ||
committer: Flyte-Bot <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: true | ||
branch: flyte-bot-update-flytecosnole | ||
delete-branch: true | ||
title: "Update Flyteconsole version" | ||
body: | | ||
Update Flyteconsole version | ||
- Auto-generated by [flyte-bot] | ||
labels: | | ||
flyteconsole | ||
team-reviewers: | | ||
owners | ||
maintainers | ||
draft: false | ||
|
||
push_docker_image: | ||
name: Build & Push Flyteconsole Image | ||
|
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 |
---|---|---|
|
@@ -59,40 +59,3 @@ jobs: | |
maintainers | ||
draft: false | ||
|
||
upgrade_flyteconsole: | ||
name: Upgrade Flyteconsole version | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.inputs.component == "flyteconsole" }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Update release | ||
run: | | ||
FLYTECONSOLE_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flyteconsole/releases/latest" | jq -r .tag_name) | ||
TODO: sed command | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.FLYTE_BOT_PAT }} | ||
commit-message: Update Flyteconsole version | ||
committer: Flyte-Bot <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: true | ||
branch: flyte-bot-update-flytecosnole | ||
delete-branch: true | ||
title: "Update Flyteconsole version" | ||
body: | | ||
Update Flyteconsole version | ||
- Auto-generated by [flyte-bot] | ||
labels: | | ||
flyteconsole | ||
team-reviewers: | | ||
owners | ||
maintainers | ||
draft: false |