fix: avoid rate-limit by using authenticated github CLI to get latest release #12
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Setup Crystal lang | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install crystal | |
| - name: Test | |
| run: | | |
| git config --global user.email "test@test.com" | |
| git config --global user.name "test" | |
| make test | |
| action-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| ref: ${{ github.head_ref }} # checkout the correct branch name | |
| fetch-depth: 0 # fetch the whole repo history | |
| - id: version | |
| uses: ./ | |
| with: | |
| skip-prerelease: true | |
| major-identifier: "BREAKING CHANGE:" | |
| minor-identifier: "feat:" | |
| prefix: "v" | |
| - name: New version | |
| run: | | |
| echo ${{ steps.version.outputs.version }} | |
| - name: Previous version | |
| run: | | |
| echo ${{ steps.version.outputs.previous-version }} |