Skip to content

Commit

Permalink
Upgrade actions/cache and actions/upload-artifact to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma authored and matkoch committed Mar 20, 2024
1 parent da755bf commit 98eb7bd
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.
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

0 comments on commit 98eb7bd

Please sign in to comment.