diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e100a57..fdec37d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -180,10 +180,8 @@ jobs: - run: tools/manifest.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: git add -N . && git diff --exit-code - if: github.repository_owner != 'taiki-e' || github.event_name != 'schedule' && !(github.event_name == 'push' && github.ref == 'refs/heads/main') - id: diff - run: ci/manifest.sh + run: tools/ci/manifest.sh if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main') - uses: peter-evans/create-pull-request@v5 with: @@ -193,3 +191,4 @@ jobs: branch: update-manifest token: ${{ secrets.CREATE_PR_TOKEN }} if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main') && steps.diff.outputs.success == 'false' + - run: git add -N . && git diff --exit-code diff --git a/ci/manifest.sh b/tools/ci/manifest.sh similarity index 97% rename from ci/manifest.sh rename to tools/ci/manifest.sh index c550c3fc..ac2cb09d 100755 --- a/ci/manifest.sh +++ b/tools/ci/manifest.sh @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 OR MIT set -euxo pipefail IFS=$'\n\t' -cd "$(dirname "$0")"/.. +cd "$(dirname "$0")"/../.. bail() { echo >&2 "error: $*"