link: don't crash when calling testLink with a RawLink directly #1047
This file contains 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: apidiff | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
go-apidiff: | |
name: go-apidiff | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run go-apidiff | |
id: apidiff | |
continue-on-error: true | |
uses: joelanford/go-apidiff@main | |
- name: Create apidiff.json | |
run: | | |
echo '{"id": ${{ github.event.pull_request.number }}, "semver-type": "${{ steps.apidiff.outputs.semver-type }}"}' > apidiff.json | |
- name: Upload apidiff.json | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apidiff | |
path: apidiff.json |