Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvraj committed Jun 29, 2022
1 parent af86ef3 commit d705661
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 42 deletions.
42 changes: 37 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <admin@flyte.org>
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
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/upgrade_automtion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <admin@flyte.org>
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

0 comments on commit d705661

Please sign in to comment.