Repository navigation
feat!: fill commitInfo from CI variables and release 2.0.0 #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull request commit | |
| on: pull_request | |
| # the job runs code from the pull request | |
| permissions: | |
| contents: read | |
| jobs: | |
| commit-info: | |
| name: commitInfo (${{ matrix.name }}) | |
| runs-on: ubuntu-latest | |
| container: ${{ matrix.container }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: default checkout | |
| fetch-depth: 1 | |
| expected: head | |
| - name: full clone | |
| fetch-depth: 0 | |
| expected: head | |
| - name: git 2.25 | |
| fetch-depth: 1 | |
| expected: head | |
| container: mcr.microsoft.com/playwright:v1.28.1-focal | |
| - name: fetch disabled | |
| fetch-depth: 1 | |
| expected: checkout | |
| disable-fetch: 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: ${{ matrix.fetch-depth }} | |
| - uses: actions/setup-node@v4 | |
| if: ${{ !matrix.container }} | |
| with: | |
| node-version: 16 | |
| # the checkout belongs to another user than the container's root | |
| - if: ${{ matrix.container }} | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - run: git --version && node --version | |
| - run: npm ci --ignore-scripts | |
| - run: node .github/scripts/check-pull-request-commit.js | |
| env: | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| EXPECTED_COMMIT: ${{ matrix.expected }} | |
| CURRENTS_DISABLE_HEAD_COMMIT_FETCH: ${{ matrix.disable-fetch }} |