From 5ea4c08d74db68dce9a702e79e733e1bd407051c Mon Sep 17 00:00:00 2001 From: Ziwei Wang Date: Thu, 1 Aug 2024 15:06:08 -0400 Subject: [PATCH] Chore: Update CI --- .github/workflows/update-ref.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-ref.yml b/.github/workflows/update-ref.yml index fff97bd16..1d12519ed 100644 --- a/.github/workflows/update-ref.yml +++ b/.github/workflows/update-ref.yml @@ -2,6 +2,12 @@ name: Update references for commits, tags, etc on: workflow_dispatch: + pull_request: + branches: + - '*' + push: + branches: + - '*' schedule: - cron: '0 0 1 * *' # Run on the first day of every month @@ -20,12 +26,15 @@ jobs: BASE_BRANCH: staging FILE_PATHS: | integration-tests/src/utils/version.ts + scripts/fetch-poky.sh scripts/fetch-docs.sh + integration-tests/src/runTest.ts + scripts/fetch-spdx-licenses.sh node-version: 20 steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ env.BASE_BRANCH }} @@ -33,7 +42,7 @@ jobs: run: bash scripts/update-ref.sh - name: Verify file changes - uses: tj-actions/verify-changed-files@v17 + uses: tj-actions/verify-changed-files@v20 id: verify-changed-files with: files: ${{ env.FILE_PATHS }} @@ -42,7 +51,6 @@ jobs: if: steps.verify-changed-files.outputs.files_changed == 'true' uses: peter-evans/create-pull-request@v5 with: - add-paths: ${{ env.FILE_PATHS }} title: Auto update references for commits, tags, etc commit-message: Auto update references for commits, tags, etc branch: update-ref