Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade actions/cache and actions/upload-artifact to v4 #1335

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/alpha-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
lfs: true
fetch-depth: 2
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand All @@ -71,19 +71,19 @@ jobs:
OptionalInput: ${{ github.event.inputs.OptionalInput }}
RequiredInput: ${{ github.event.inputs.RequiredInput }}
- name: 'Publish: src'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: coverage-report.zip
Expand All @@ -102,7 +102,7 @@ jobs:
lfs: true
fetch-depth: 2
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand All @@ -114,19 +114,19 @@ jobs:
OptionalInput: ${{ github.event.inputs.OptionalInput }}
RequiredInput: ${{ github.event.inputs.RequiredInput }}
- name: 'Publish: src'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: coverage-report.zip
Expand All @@ -145,7 +145,7 @@ jobs:
lfs: true
fetch-depth: 2
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand All @@ -157,19 +157,19 @@ jobs:
OptionalInput: ${{ github.event.inputs.OptionalInput }}
RequiredInput: ${{ github.event.inputs.RequiredInput }}
- name: 'Publish: src'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: coverage-report.zip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand All @@ -41,17 +41,17 @@ jobs:
ApiKey: ${{ secrets.API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Publish: src'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report.zip
path: output/coverage-report.zip
Expand All @@ -61,7 +61,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand All @@ -73,17 +73,17 @@ jobs:
ApiKey: ${{ secrets.API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Publish: src'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report.zip
path: output/coverage-report.zip
Expand All @@ -93,7 +93,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.nuke/temp
Expand All @@ -105,17 +105,17 @@ jobs:
ApiKey: ${{ secrets.API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Publish: src'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report.zip
path: output/coverage-report.zip
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GitHubActionsArtifactStep : GitHubActionsStep
public override void Write(CustomFileWriter writer)
{
writer.WriteLine("- name: " + $"Publish: {Name}".SingleQuote());
writer.WriteLine(" uses: actions/upload-artifact@v3");
writer.WriteLine(" uses: actions/upload-artifact@v4");

using (writer.Indent())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public override void Write(CustomFileWriter writer)
writer.WriteLine("- name: " + $"Cache: {IncludePatterns.JoinCommaSpace()}".SingleQuote());
using (writer.Indent())
{
writer.WriteLine("uses: actions/cache@v3");
writer.WriteLine("uses: actions/cache@v4");
writer.WriteLine("with:");
using (writer.Indent())
{
Expand Down
Loading