fix(dotnet): target net8.0 and set OTEL_SERVICE_NAME so the wrapper s… #2259
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: check-links | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - ".github/workflows/check-links.yaml" | |
| - ".github/lychee.toml" | |
| - "**/*.md" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| changedfiles: | |
| name: changed files | |
| runs-on: ubuntu-latest | |
| env: | |
| PR_HEAD: ${{ github.event.pull_request.head.sha }} | |
| outputs: | |
| files: ${{ steps.changes.outputs.files }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changes | |
| run: | | |
| files=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep .md$ | xargs) | |
| if [ -z "$files" ]; then | |
| files="**/*.md" | |
| fi | |
| echo "files=$files" >> $GITHUB_OUTPUT | |
| check-links: | |
| runs-on: ubuntu-latest | |
| needs: changedfiles | |
| if: ${{needs.changedfiles.outputs.files}} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 | |
| with: | |
| args: "--verbose --no-progress ${{needs.changedfiles.outputs.files}} --config .github/lychee.toml" | |
| failIfEmpty: false |