Skip to content

Commit

Permalink
Update GH Action (#1709)
Browse files Browse the repository at this point in the history
* use v4

* use v4 for checkout as well

* new output syntax
  • Loading branch information
TylerLeonhardt authored Sep 17, 2024
1 parent 59c18ac commit 0288a80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- id: set-matrix
run: |
$obj = @{
languagePack = Get-ChildItem i18n | ForEach-Object Name
}
Write-Host "::set-output name=matrix::$($obj | ConvertTo-Json -Depth 100 -Compress)"
"matrix=$($obj | ConvertTo-Json -Depth 100 -Compress)" >> $env:GITHUB_OUTPUT
shell: pwsh
build:
name: Build
Expand All @@ -36,7 +36,7 @@ jobs:
matrix: ${{fromJSON(needs.determine-matrix.outputs.matrix)}}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Generate Name
run: node -e "console.log('PACKAGE_NAME=' + require('./i18n/${{ matrix.languagePack }}/package.json').name + '-v' + require('./i18n/${{ matrix.languagePack }}/package.json').version)" >> $GITHUB_ENV
Expand All @@ -48,7 +48,7 @@ jobs:
run: cd ./i18n/${{ matrix.languagePack }} && npx vsce package -o ${{ env.PACKAGE_NAME }}.vsix

- name: Publish Test Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}.vsix
path: ./i18n/${{ matrix.languagePack }}/${{ env.PACKAGE_NAME }}.vsix

0 comments on commit 0288a80

Please sign in to comment.