Skip to content

Commit

Permalink
updating action versions for deprecation of node 16 (#998)
Browse files Browse the repository at this point in the history
Co-authored-by: devops <[email protected]>
  • Loading branch information
F-WRunTime and devops authored Feb 28, 2024
1 parent 84264eb commit 40d281d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.runner }}
steps:
- name: 'Check out code'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Check out pull request HEAD instead of merge commit.
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/update.yml
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

0 comments on commit 40d281d

Please sign in to comment.