diff --git a/.github/workflows/ci-integ-test.yml b/.github/workflows/ci-integ-test.yml index 85f0d7f..ff9e267 100644 --- a/.github/workflows/ci-integ-test.yml +++ b/.github/workflows/ci-integ-test.yml @@ -31,8 +31,8 @@ jobs: exit 0 fi - # Run full suite for push trigger on 'main' and 'release/*' branches - if [[ "${{ github.ref_name }}" == "main" || "${{ github.ref_name }}" == "release/"* ]]; then + # Run full suite for push trigger with "[bot] Update dist directory" commit message + if [ "${{ github.event.head_commit.message }}" == "[bot] Update dist directory" ]; then echo "Push to main branch: suite=full" echo "suite=full" >> "$GITHUB_OUTPUT" exit 0 diff --git a/.github/workflows/ci-update-dist.yml b/.github/workflows/ci-update-dist.yml index fee1f5b..4567434 100644 --- a/.github/workflows/ci-update-dist.yml +++ b/.github/workflows/ci-update-dist.yml @@ -6,6 +6,8 @@ on: branches: - 'main' - 'release/**' + paths_ignore: + - 'dist/**' permissions: contents: write @@ -16,6 +18,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.BOT_GITHUB_TOKEN }} - name: Set up Node.js uses: actions/setup-node@v4 @@ -44,5 +48,5 @@ jobs: if: github.repository == 'gradle/actions' uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: 'Update dist directory' + commit_message: '[bot] Update dist directory' file_pattern: dist