-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating action versions for deprecation of node 16 (#998)
Co-authored-by: devops <[email protected]>
- Loading branch information
1 parent
84264eb
commit 40d281d
Showing
3 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
name: Formatting Check | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Check that C and C++ code is correctly formatted | ||
uses: jidicula/[email protected] | ||
with: | ||
|
@@ -21,7 +21,7 @@ jobs: | |
name: Shell check | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: ludeeus/[email protected] | ||
name: Check that shell scripts follow best practices | ||
with: | ||
|
@@ -32,7 +32,7 @@ jobs: | |
runs-on: [self-hosted, linux, normal] | ||
steps: | ||
- name: 'Check out code' | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
|
@@ -60,7 +60,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Check out code' | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Set up Java 17' | ||
uses: actions/setup-java@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 'Update' | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: '**/pom.xml' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Update the pinned Maven dependencies for Nix. | ||
# This job only runs on push events because we cannot push changes back to a | ||
# pull request branch from a fork. | ||
nix-maven: | ||
name: 'Nix: Maven' | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: 'Check out code' | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.JENKINS_GITHUB_PAT }} | ||
submodules: recursive | ||
- run: | | ||
git config --global user.name rv-jenkins | ||
git config --global user.email [email protected] | ||
- name: 'Install Nix' | ||
uses: cachix/install-nix-action@v22 | ||
with: | ||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
- name: 'Install Cachix' | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: k-framework | ||
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}' | ||
|
||
- name: 'Update Maven dependencies' | ||
run: | | ||
set -x | ||
if ! git diff --exit-code origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} \ | ||
-- $(find . -name pom.xml) \ | ||
$(find nix -name '*.nix'); then | ||
./nix/update-maven.sh | ||
fi | ||
if git add nix/ && git commit -m 'Update Maven dependencies'; then | ||
git push --force origin HEAD:${{ github.head_ref }} | ||
fi |