diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50ca1b5..5c87a1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,14 +40,13 @@ jobs: run: ./scripts/test.sh - name: Check versions if: github.event_name == 'pull_request' - env: - BASE: ${{ github.event.pull_request.base.sha }} - run: ./scripts/check-versions.sh "$BASE" + # The checkout is the pull request merged into the base branch, so HEAD^1 is the base it + # merges into. The event's base.sha can be older, which counted the base branch's newer + # commits as part of the pull request. + run: ./scripts/check-versions.sh HEAD^1 - name: Check one package per pull request if: github.event_name == 'pull_request' - env: - BASE: ${{ github.event.pull_request.base.sha }} - run: ./scripts/check-one-package.sh "$BASE" + run: ./scripts/check-one-package.sh HEAD^1 # Checks every package against the newest StableBar and against its latest release, the version # most people install the store's packages into. A package that needs a newer StableBar than the