Skip to content

Commit

Permalink
Bump actions/upload-artifact from 3 to 4 (#2609)
Browse files Browse the repository at this point in the history
* Bump actions/upload-artifact from 3 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Pipeline updates

* Fixes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernie White <[email protected]>
  • Loading branch information
dependabot[bot] and BernieWhite authored Jan 1, 2024
1 parent 6403cbb commit 9259b3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
sarif_file: reports/ps-rule-results.sarif

- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: PSRule-Sarif
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
sarif_file: devskim-results.sarif

- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: DevSkim-Sarif
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
id: codeql-analyze

- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: CodeQL-Sarif
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_VERSION: 7.x

jobs:
build:
Expand All @@ -32,7 +33,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
shell: pwsh
Expand All @@ -45,15 +46,15 @@ jobs:
run: Invoke-Build -Configuration Release -AssertStyle GitHubActions

- name: Upload module
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Module
path: ./out/modules/PSRule.Rules.Azure/*
retention-days: 3
if-no-files-found: error

# - name: Upload Test Results
# uses: actions/upload-artifact@v3
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: Module.DotNet.TestResults
Expand All @@ -62,10 +63,10 @@ jobs:
# if-no-files-found: error

- name: Upload PSRule Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: Module.PSRule.TestResults
name: Results-PSRule
path: ./reports/ps-rule*.xml
retention-days: 3
if-no-files-found: error
Expand Down Expand Up @@ -110,7 +111,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
dotnet-version: ${{ env.DOTNET_VERSION }}

- if: ${{ matrix.shell == 'pwsh' }}
name: Install dependencies (PowerShell)
Expand All @@ -125,7 +126,7 @@ jobs:
run: ./scripts/pipeline-deps.ps1

- name: Download module
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Module
path: ./out/modules/PSRule.Rules.Azure
Expand Down

0 comments on commit 9259b3b

Please sign in to comment.