From d7056617064e473f922803c54ec777b8548240a7 Mon Sep 17 00:00:00 2001 From: Yuvraj Date: Wed, 29 Jun 2022 08:41:03 +0530 Subject: [PATCH] more changes --- .github/workflows/checks.yml | 42 ++++++++++++++++++++++--- .github/workflows/upgrade_automtion.yml | 37 ---------------------- 2 files changed, 37 insertions(+), 42 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 34de01229..ff1c2047d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 + 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 diff --git a/.github/workflows/upgrade_automtion.yml b/.github/workflows/upgrade_automtion.yml index f0d8a5ef7..af967a4d7 100644 --- a/.github/workflows/upgrade_automtion.yml +++ b/.github/workflows/upgrade_automtion.yml @@ -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 - 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