From 60be7f61d65a490a6cd213ac4bc4dbcc14d98fe2 Mon Sep 17 00:00:00 2001 From: Yuvraj <10830562+evalsocket@users.noreply.github.com> Date: Sun, 4 Apr 2021 00:00:57 +0530 Subject: [PATCH] Added release workflow (#170) Signed-off-by: yuvraj --- .github/workflows/release-automation.yml | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release-automation.yml diff --git a/.github/workflows/release-automation.yml b/.github/workflows/release-automation.yml new file mode 100644 index 0000000000..e99213a125 --- /dev/null +++ b/.github/workflows/release-automation.yml @@ -0,0 +1,41 @@ +name: Update flyteidl version +on: + workflow_dispatch: + +jobs: + update-flyte-releases: + name: Update Flyteidl version + runs-on: ubuntu-latest + 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: | + FLYTEIDL_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flyteidl/releases/latest" | jq -r .tag_name) + go get -u github.com/flyteorg/flyteidl@$FLYTEIDL_VERSION + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.FLYTE_BOT_PAT }} + commit-message: Update Flyteidl version + committer: Flyte-Bot + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + signoff: true + branch: flyte-bot-update-flyteidl + delete-branch: true + title: 'Update Flyteidl version' + body: | + Update Flyteidl version + - Auto-generated by [flyte-bot] + labels: | + flyteidl + team-reviewers: | + owners + maintainers + draft: false \ No newline at end of file