From 7f3f28cc572c5ab2196c0bc49fd6c7374cd20223 Mon Sep 17 00:00:00 2001 From: Yuvraj Date: Wed, 27 Apr 2022 23:59:58 +0530 Subject: [PATCH] added reuseable workflow for boilerplate (#132) * feat: added reuseable workflow for boilerplate Signed-off-by: Yuvraj --- .github/workflows/boilerplate-automation.yml | 37 -------------------- .github/workflows/upgrade_automation.yml | 12 +++++++ 2 files changed, 12 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/boilerplate-automation.yml create mode 100644 .github/workflows/upgrade_automation.yml diff --git a/.github/workflows/boilerplate-automation.yml b/.github/workflows/boilerplate-automation.yml deleted file mode 100644 index d4a76239..00000000 --- a/.github/workflows/boilerplate-automation.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Update Boilerplate Automation -on: - workflow_dispatch: - -jobs: - update-boilerplate: - name: Update Boilerplate - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: "0" - - name: Update Boilerplate - run: | - make update_boilerplate - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.FLYTE_BOT_PAT }} - commit-message: Update Boilerplate - committer: Flyte-Bot - author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - signoff: true - branch: flyte-bot-update-boilerplate - delete-branch: true - title: 'Update Boilerplate' - body: | - Update Boilerplate - - Auto-generated by [flyte-bot] - labels: | - boilerplate - team-reviewers: | - owners - maintainers - draft: false - diff --git a/.github/workflows/upgrade_automation.yml b/.github/workflows/upgrade_automation.yml new file mode 100644 index 00000000..94fceadd --- /dev/null +++ b/.github/workflows/upgrade_automation.yml @@ -0,0 +1,12 @@ +name: Boilerplate Upgrade Automation +on: + workflow_dispatch: + +jobs: + trigger-upgrade: + name: Boilerplate Upgrade Automation + uses: flyteorg/flytetools/.github/workflows/flyte_automation.yml@master + with: + component: boilerplate + secrets: + FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} \ No newline at end of file