Skip to content

Commit

Permalink
Merge pull request #3916 from microsoft/dependabot/github_actions/act…
Browse files Browse the repository at this point in the history
…ions/download-artifact-4

Bump actions/download-artifact from 3 to 4
  • Loading branch information
baywet authored Dec 15, 2023
2 parents e771371 + e679671 commit 0c459b0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- run: vsce package
working-directory: vscode/microsoft-kiota
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vscode-extension
path: vscode/microsoft-kiota/*.vsix
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: dotnet tool install --global dotnet-reportgenerator-globaltool
- name: Generate coverage report
run: reportgenerator -reports:**/coverage.cobertura.xml -targetdir:./reports/coverage
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage
path: reports/coverage
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/idempotency-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Build
run: dotnet publish ./src/kiota/kiota.csproj -c Release -p:PublishSingleFile=true -p:PublishReadyToRun=true -o ./publish
# -p:PublishTrimmed=true -p:PublishAot=true should be enabled to make test run faster, but there are still limitations
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: generator
path: publish
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- "apisguru::docusign.net"
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: generator
path: publish
Expand All @@ -98,7 +98,7 @@ jobs:
ORIGINAL="${{ matrix.description }}"
REPLACED="${ORIGINAL//[-:<>|\*\?\\\/\.]/_}"
echo "ARTKEY=$REPLACED" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: idempotency-${{ matrix.language }}-${{ steps.replace_url.outputs.ARTKEY }}
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Build
run: dotnet publish ./src/kiota/kiota.csproj -c Release -p:PublishSingleFile=true -p:PublishReadyToRun=true -o ./publish
# -p:PublishTrimmed=true -p:PublishAot=true should be enabled to make test run faster, but there are still limitations
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: generator
path: publish
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- "apisguru::docusign.net"
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: generator
path: publish
Expand Down Expand Up @@ -144,11 +144,13 @@ jobs:

- id: replace_url
if: always()
# 97 so we don't exceed the 128 character limit for artifact names with the generation-results-typescript prefix
run: |
ORIGINAL="${{ matrix.description }}"
REPLACED="${ORIGINAL//[-:<>|\*\?\\\/\.]/_}"
echo "ARTKEY=$REPLACED" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
$original="${{ matrix.description }}"
$replaced=($original -replace "[-:<>|\*\?\\\/\.]", "_").Substring(0, [Math]::Min(97, $original.Length))
Write-Output "ARTKEY=$replaced" >> $Env:GITHUB_OUTPUT
shell: pwsh
- uses: actions/upload-artifact@v4
if: always()
with:
name: generation-results-${{ matrix.language }}-${{ steps.replace_url.outputs.ARTKEY }}
Expand Down

0 comments on commit 0c459b0

Please sign in to comment.