Skip to content

Commit

Permalink
Merge pull request #21 from xt0rted/setup-dotnet
Browse files Browse the repository at this point in the history
Switch to xt0rted/setup-dotnet
  • Loading branch information
xt0rted committed Apr 13, 2022
2 parents f0dc6f5 + 367ddb6 commit fe3877e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,11 @@ jobs:
run: echo "VERSION_SUFFIX=alpha.${{ github.event.number }}" >> $GITHUB_ENV
shell: bash

# This action doesn't support comments in the global.json so for now we have to specify all sdk versions
- name: Set up .NET
uses: actions/setup-dotnet@v2.0.0
uses: xt0rted/setup-dotnet@v1.0.0
with:
source-url: https://nuget.pkg.github.com/xt0rted/index.json
dotnet-version: |
3.1.x
5.0.x
6.0.x
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
nuget_auth_token: ${{ secrets.GITHUB_TOKEN }}

- run: dotnet tool restore

Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3.0.0

# This action doesn't support comments in the global.json so for now we have to specify all sdk versions
- name: Set up .NET
uses: actions/setup-dotnet@v2.0.0
uses: xt0rted/setup-dotnet@v1.0.0
with:
source-url: https://nuget.pkg.github.com/xt0rted/index.json
dotnet-version: |
3.1.x
5.0.x
6.0.x
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
nuget_auth_token: ${{ secrets.GITHUB_TOKEN }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3.0.0

# This action doesn't support comments in the global.json so for now we have to specify all sdk versions
- name: Set up .NET
uses: actions/setup-dotnet@v2.0.0
uses: xt0rted/setup-dotnet@v1.0.0
with:
source-url: https://nuget.pkg.github.com/xt0rted/index.json
dotnet-version: |
3.1.x
5.0.x
6.0.x
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
nuget_auth_token: ${{ secrets.GITHUB_TOKEN }}

- name: Get changelog entry
uses: mindsers/changelog-reader-action@v2.0.0
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Switched from [actions/setup-dotnet](https://github.com/actions/setup-dotnet) to [xt0rted/setup-dotnet](https://github.com/xt0rted/setup-dotnet)

## [0.1.0](https://github.com/xt0rted/dotnet-run-script/releases/tag/v0.1.0) - 2022-03-26

- Run scripts with `dotnet r ...`
Expand Down

0 comments on commit fe3877e

Please sign in to comment.