From b19e0aec75caac04bc4b9eb95a9358e396ab1555 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 11 Jun 2024 13:53:33 -0700 Subject: [PATCH 1/2] [ci] bring back reg tests on master branch and version updater is now triggered automatically on any changes to master branch --- .github/workflows/build.yml | 5 ++++- .github/workflows/cell_lib_test.yml | 5 ++++- .github/workflows/format.yaml | 4 ++++ .github/workflows/patch_updater.yml | 5 +++-- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3a223a247..8b04312d53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,12 @@ name: Test # Run CI on push, PR, and weekly. - on: + workflow_dispatch: pull_request: + push: + branches: + - 'master' schedule: - cron: "0 0 * * 0 " # weekly diff --git a/.github/workflows/cell_lib_test.yml b/.github/workflows/cell_lib_test.yml index 8ee9c47cce..5d590dc900 100644 --- a/.github/workflows/cell_lib_test.yml +++ b/.github/workflows/cell_lib_test.yml @@ -1,9 +1,12 @@ name: Cell Library Tests # Run CI on push, PR, and weekly. - on: + workflow_dispatch: pull_request: + push: + branches: + - 'master' schedule: - cron: "0 0 * * 0 " # weekly diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index fc119f7eb2..2631f135b7 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -3,7 +3,11 @@ name: Code Format # Run CI on push, PR, and weekly. on: + workflow_dispatch: pull_request: + push: + branches: + - 'master' schedule: - cron: "0 0 * * 0 " # weekly diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index 7a579acf98..e0687c2381 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -1,8 +1,9 @@ name: Count Patches on: workflow_dispatch: - schedule: - - cron: '0 0 * * *' + push: + branches: + - 'master' env: TAG_COMMIT: 8ee3fb8.. From 0cdc281828b193a4a11053a8381bbb720da52da2 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 11 Jun 2024 13:56:01 -0700 Subject: [PATCH 2/2] [core] now use force push --- .github/workflows/patch_updater.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index e0687c2381..38c406e98c 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -42,6 +42,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{env.BRANCH_NAME}} + force: true - name: Create Auto PR if: "!contains(steps.log.outputs.message, 'Updated Patch Count') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')"