mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-11-04 04:23:45 +00:00 
			
		
		
		
	Bump checkout action to v3
This commit is contained in:
		
							parent
							
								
									f3275be279
								
							
						
					
					
						commit
						9858bda9ee
					
				
							
								
								
									
										5
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							@ -21,12 +21,13 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Set Node.js 16
 | 
					      - name: Set Node.js 16
 | 
				
			||||||
        uses: actions/setup-node@v1
 | 
					        uses: actions/setup-node@v3
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          node-version: 16.x
 | 
					          node-version: 16.x
 | 
				
			||||||
 | 
					          cache: npm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install dependencies
 | 
					      - name: Install dependencies
 | 
				
			||||||
        run: npm ci
 | 
					        run: npm ci
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							@ -14,7 +14,7 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    name: Check licenses
 | 
					    name: Check licenses
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - run: npm ci
 | 
					      - run: npm ci
 | 
				
			||||||
      - name: Install licensed
 | 
					      - name: Install licensed
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/test-dotnet.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test-dotnet.yml
									
									
									
									
										vendored
									
									
								
							@ -21,7 +21,7 @@ jobs:
 | 
				
			|||||||
        dotnet-version: ['2.1', '2.2', '3.0', '3.1', '5.0']
 | 
					        dotnet-version: ['2.1', '2.2', '3.0', '3.1', '5.0']
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear toolcache
 | 
					      - name: Clear toolcache
 | 
				
			||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
					        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										18
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							@ -20,9 +20,9 @@ jobs:
 | 
				
			|||||||
        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
					        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - name: Checkout
 | 
					    - name: Checkout
 | 
				
			||||||
      uses: actions/checkout@v2
 | 
					      uses: actions/checkout@v3
 | 
				
			||||||
    - name: Set Node.js 16
 | 
					    - name: Set Node.js 16
 | 
				
			||||||
      uses: actions/setup-node@v1
 | 
					      uses: actions/setup-node@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        node-version: 16.x
 | 
					        node-version: 16.x
 | 
				
			||||||
        cache: npm
 | 
					        cache: npm
 | 
				
			||||||
@ -42,7 +42,7 @@ jobs:
 | 
				
			|||||||
        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
					        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear toolcache
 | 
					      - name: Clear toolcache
 | 
				
			||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
					        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
@ -65,7 +65,7 @@ jobs:
 | 
				
			|||||||
        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
					        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear toolcache
 | 
					      - name: Clear toolcache
 | 
				
			||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
					        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
@ -98,7 +98,7 @@ jobs:
 | 
				
			|||||||
        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
					        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear toolcache
 | 
					      - name: Clear toolcache
 | 
				
			||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
					        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
@ -123,7 +123,7 @@ jobs:
 | 
				
			|||||||
        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
					        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear toolcache
 | 
					      - name: Clear toolcache
 | 
				
			||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
					        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
@ -147,7 +147,7 @@ jobs:
 | 
				
			|||||||
        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
					        operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear toolcache
 | 
					      - name: Clear toolcache
 | 
				
			||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
					        run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
@ -178,7 +178,7 @@ jobs:
 | 
				
			|||||||
      http_proxy: http://squid-proxy:3128
 | 
					      http_proxy: http://squid-proxy:3128
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear tool cache
 | 
					      - name: Clear tool cache
 | 
				
			||||||
        run: rm -rf "/usr/share/dotnet"
 | 
					        run: rm -rf "/usr/share/dotnet"
 | 
				
			||||||
      - name: Install curl
 | 
					      - name: Install curl
 | 
				
			||||||
@ -202,7 +202,7 @@ jobs:
 | 
				
			|||||||
      no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net
 | 
					      no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
      - name: Clear tool cache
 | 
					      - name: Clear tool cache
 | 
				
			||||||
        run: rm -rf "/usr/share/dotnet"
 | 
					        run: rm -rf "/usr/share/dotnet"
 | 
				
			||||||
      - name: Setup dotnet 3.1.201
 | 
					      - name: Setup dotnet 3.1.201
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							@ -23,7 +23,7 @@ See [action.yml](action.yml)
 | 
				
			|||||||
Basic:
 | 
					Basic:
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- uses: actions/checkout@v2
 | 
					- uses: actions/checkout@v3
 | 
				
			||||||
- uses: actions/setup-dotnet@v2
 | 
					- uses: actions/setup-dotnet@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel
 | 
					    dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel
 | 
				
			||||||
@ -34,7 +34,7 @@ Multiple versions:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```yml
 | 
					```yml
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- uses: actions/checkout@v2
 | 
					- uses: actions/checkout@v3
 | 
				
			||||||
- name: Setup dotnet
 | 
					- name: Setup dotnet
 | 
				
			||||||
  uses: actions/setup-dotnet@v2
 | 
					  uses: actions/setup-dotnet@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
@ -46,7 +46,7 @@ steps:
 | 
				
			|||||||
Preview version:
 | 
					Preview version:
 | 
				
			||||||
```yml
 | 
					```yml
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- uses: actions/checkout@v2
 | 
					- uses: actions/checkout@v3
 | 
				
			||||||
- uses: actions/setup-dotnet@v2
 | 
					- uses: actions/setup-dotnet@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    dotnet-version: '6.0.x'
 | 
					    dotnet-version: '6.0.x'
 | 
				
			||||||
@ -64,7 +64,7 @@ jobs:
 | 
				
			|||||||
        dotnet: [ '2.1.x', '3.1.x', '5.0.x' ]
 | 
					        dotnet: [ '2.1.x', '3.1.x', '5.0.x' ]
 | 
				
			||||||
    name: Dotnet ${{ matrix.dotnet }} sample
 | 
					    name: Dotnet ${{ matrix.dotnet }} sample
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - name: Setup dotnet
 | 
					      - name: Setup dotnet
 | 
				
			||||||
        uses: actions/setup-dotnet@v2
 | 
					        uses: actions/setup-dotnet@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
@ -79,7 +79,7 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    name: Dotnet Side by Side testing sample
 | 
					    name: Dotnet Side by Side testing sample
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - name: Setup dotnet
 | 
					      - name: Setup dotnet
 | 
				
			||||||
        uses: actions/setup-dotnet@v2
 | 
					        uses: actions/setup-dotnet@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
@ -95,7 +95,7 @@ jobs:
 | 
				
			|||||||
Authentication for nuget feeds:
 | 
					Authentication for nuget feeds:
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- uses: actions/checkout@v2
 | 
					- uses: actions/checkout@v3
 | 
				
			||||||
# Authenticates packages to push to GPR
 | 
					# Authenticates packages to push to GPR
 | 
				
			||||||
- uses: actions/setup-dotnet@v2
 | 
					- uses: actions/setup-dotnet@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "setup-dotnet",
 | 
					  "name": "setup-dotnet",
 | 
				
			||||||
  "version": "1.0.0",
 | 
					  "version": "2.0.0",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "description": "setup dotnet action",
 | 
					  "description": "setup dotnet action",
 | 
				
			||||||
  "main": "lib/setup-dotnet.js",
 | 
					  "main": "lib/setup-dotnet.js",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user