Skip to content

Commit

Permalink
Update GitHub Actions to v4 where possible.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Mar 6, 2024
1 parent b041ca4 commit e0dadeb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
os: [macos-latest, ubuntu-latest]
steps:
- name: Check Out Code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Up NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Set Up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
outputs:
repo-cache-hit: ${{ steps.cache-last-commit.outputs.cache-hit }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: 'eclipse-jdtls/eclipse.jdt.ls'
fetch-depth: 2
path: eclipse.jdt.ls
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: 'redhat-developer/vscode-java'
fetch-depth: 2
Expand All @@ -56,7 +56,7 @@ jobs:
git rev-parse HEAD >> ../lastCommit
- name: Check New Changes
id: cache-last-commit
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: lastCommit
key: lastCommit-${{ hashFiles('lastCommit') }}
Expand All @@ -67,19 +67,19 @@ jobs:
steps:
- name: Checkout JDT-LS
if: "${{ inputs.JDT_LS_VERSION == '' }}"
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: eclipse-jdtls/eclipse.jdt.ls
- name: Cache Maven local repository
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.m2/wrapper
!~/.m2/repository/org/eclipse/jdt/ls
key: maven-local-${{ hashFiles('**/pom.xml') }}
- name: Set Up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand All @@ -90,9 +90,9 @@ jobs:
mkdir ../staging
cp org.eclipse.jdt.ls.product/distro/jdt-language-server-*.tar.gz ../staging
- name: Check Out VS Code Java
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Up NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install NodeJS dependencies
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
vsce package ${{ env.publishPreReleaseFlag }} -o vscode-java-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
ls -lash *.vsix
- name: Upload VSIX Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: vscode-java
path: |
Expand All @@ -169,14 +169,14 @@ jobs:
needs: packaging-job
steps:
- name: Set Up NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: |
npm install -g typescript "@vscode/vsce" "ovsx"
- name: Download VSIX & JDT-LS
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Publish to VS Code Marketplace
if: ${{ github.event_name == 'schedule' || inputs.publishToMarketPlace == 'true' || inputs.publishPreRelease == 'true' }}
run: |
Expand Down

0 comments on commit e0dadeb

Please sign in to comment.