Skip to content

Commit

Permalink
chore(ci): use actions/checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed May 2, 2024
1 parent 0cc1343 commit b09fa05
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 17 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/neovim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ jobs:
"v0.8.2",
"v0.8.3",
"v0.9.0",
"v0.9.1",
"v0.9.2",
"v0.9.4",
"v0.9.5",
"stable",
"nightly",
]
name: Ubuntu nvim-${{ matrix.neovim_tag }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Neovim
uses: MunifTanjim/setup-neovim-action@v1
with:
Expand All @@ -40,7 +44,7 @@ jobs:
name: Macos nvim-nightly

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Neovim
run: |
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
Expand All @@ -55,7 +59,7 @@ jobs:
name: Windows nvim-nightly
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Neovim
run: |
C:\msys64\usr\bin\wget.exe -q https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell -p stylua --run "stylua -f stylua.toml --check ."
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ jobs:
"v0.8.2",
"v0.8.3",
"v0.9.0",
"v0.9.1",
"v0.9.2",
"v0.9.4",
"v0.9.5",
"stable",
"nightly",
]
name: Tests nvim-${{ matrix.neovim_tag }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Neovim
uses: MunifTanjim/setup-neovim-action@v1
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/update-color-primitives.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Get/Update Primer Color Primitives

env:
_DEST_DIR: '${{ github.workspace }}/lua/github-theme/palette/primitives'
_JSON_DIR: '${{ github.workspace }}/node_modules/@primer/primitives/dist/json/colors'
_LICENSE_GLOB: '${{ github.workspace }}/node_modules/@primer/primitives/[Ll][Ii][Cc][Ee][Nn][Ss][Ee]*'
_PRIMITIVES_PKGJSON: '${{ github.workspace }}/node_modules/@primer/primitives/package.json'
_DEST_DIR: "${{ github.workspace }}/lua/github-theme/palette/primitives"
_JSON_DIR: "${{ github.workspace }}/node_modules/@primer/primitives/dist/json/colors"
_LICENSE_GLOB: "${{ github.workspace }}/node_modules/@primer/primitives/[Ll][Ii][Cc][Ee][Nn][Ss][Ee]*"
_PRIMITIVES_PKGJSON: "${{ github.workspace }}/node_modules/@primer/primitives/package.json"

on:
workflow_dispatch:
schedule:
# 3x per week (every other day) at 12:40pm Pacific Time
- cron: '40 19 * * 1,3,5'
- cron: "40 19 * * 1,3,5"

jobs:
get-colors:
Expand All @@ -24,11 +24,11 @@ jobs:
statuses: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: "lts/*"
check-latest: true

- run: npm i @primer/primitives@latest
Expand Down Expand Up @@ -56,13 +56,13 @@ jobs:
EOF
done
- uses: JohnnyMorganz/stylua-action@v3
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: -f stylua.toml --verify -- ${{ env._DEST_DIR }}

- uses: peter-evans/create-pull-request@v5
- uses: peter-evans/create-pull-request@v6
with:
commit-message: Update color primitives
branch: update-color-primitives
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changes

-
- chore(ci): use `actions/checkout@v4`

### Issues Fix

Expand Down

0 comments on commit b09fa05

Please sign in to comment.