mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-31 12:27:22 +02:00
CI: Update all actions
[why]
Because we want to use Node 20 etc pp
[how]
Check for breaking changes and update.
Also replace checkout-files by checkout with sparse-checkout; as they
semselves encourage people to do.
action-gh-release has been updated to Node 20 but has not been released
with the change, so we access the latest version directly by hash.
[note]
Of course this is unchecked... what can ge wrong! 😬
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
cf3561b1a5
commit
48156a785f
12
.github/workflows/casks.yml
vendored
12
.github/workflows/casks.yml
vendored
@ -15,10 +15,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch stuff (no checkout)
|
- name: Fetch stuff (no checkout)
|
||||||
uses: Bhacaz/checkout-files@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
files: bin/scripts/lib/fonts.json bin/scripts/fetch-archives.sh bin/scripts/generate-casks.sh
|
sparse-checkout: |
|
||||||
branch: ${{ github.head_ref || github.ref_name }}
|
bin/scripts
|
||||||
- name: Fetch release artifacts
|
- name: Fetch release artifacts
|
||||||
run: |
|
run: |
|
||||||
cd bin/scripts
|
cd bin/scripts
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
cd bin/scripts
|
cd bin/scripts
|
||||||
./generate-casks.sh --setversion ${{ steps.releasetag.outputs.tag }}
|
./generate-casks.sh --setversion ${{ steps.releasetag.outputs.tag }}
|
||||||
- name: Upload casks as artifacts
|
- name: Upload casks as artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: casks
|
name: casks
|
||||||
path: casks
|
path: casks
|
||||||
@ -53,7 +53,7 @@ jobs:
|
|||||||
PAK=$(echo "${FORK_TOKEN}" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
|
PAK=$(echo "${FORK_TOKEN}" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
|
||||||
echo "pak=${PAK}" >> $GITHUB_OUTPUT
|
echo "pak=${PAK}" >> $GITHUB_OUTPUT
|
||||||
- name: Checkout Homebrew
|
- name: Checkout Homebrew
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: ${{ env.HOMEBREW_FORK }}
|
repository: ${{ env.HOMEBREW_FORK }}
|
||||||
path: homebrew
|
path: homebrew
|
||||||
@ -67,7 +67,7 @@ jobs:
|
|||||||
git reset --hard upstream/master
|
git reset --hard upstream/master
|
||||||
git push --force origin HEAD:nerdfonts
|
git push --force origin HEAD:nerdfonts
|
||||||
- name: Retrieve new casks
|
- name: Retrieve new casks
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: casks
|
name: casks
|
||||||
path: casks
|
path: casks
|
||||||
|
8
.github/workflows/contributors.yml
vendored
8
.github/workflows/contributors.yml
vendored
@ -14,12 +14,12 @@ jobs:
|
|||||||
name: Update gh-pages contributors
|
name: Update gh-pages contributors
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Fetch old from gh-pages
|
- name: Fetch old from gh-pages
|
||||||
uses: Bhacaz/checkout-files@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
files: _posts/2017-01-05-all-contributors.md
|
sparse-checkout: _posts
|
||||||
branch: gh-pages
|
ref: gh-pages
|
||||||
- name: Update the page
|
- name: Update the page
|
||||||
run: |
|
run: |
|
||||||
cd bin/scripts
|
cd bin/scripts
|
||||||
|
12
.github/workflows/docker-release.yml
vendored
12
.github/workflows/docker-release.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
if: ${{ github.repository_owner == 'ryanoasis' }}
|
if: ${{ github.repository_owner == 'ryanoasis' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Determine font-patcher version
|
- name: Determine font-patcher version
|
||||||
id: patcher
|
id: patcher
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
# Docker Meta provides automatic, standard tagging
|
# Docker Meta provides automatic, standard tagging
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: nerdfonts/patcher
|
images: nerdfonts/patcher
|
||||||
flavor: latest=true
|
flavor: latest=true
|
||||||
@ -45,24 +45,24 @@ jobs:
|
|||||||
|
|
||||||
# QEMU allows us to build container images for multiple architectures (amd64, ARM etc...)
|
# QEMU allows us to build container images for multiple architectures (amd64, ARM etc...)
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
# Docker Buildx provides Buildkit support
|
# Docker Buildx provides Buildkit support
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PAT }}
|
password: ${{ secrets.DOCKER_PAT }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
2
.github/workflows/font-patcher.yml
vendored
2
.github/workflows/font-patcher.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup core dependencies
|
- name: Setup core dependencies
|
||||||
run: |
|
run: |
|
||||||
|
9
.github/workflows/fontjson.yml
vendored
9
.github/workflows/fontjson.yml
vendored
@ -12,10 +12,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch files
|
- name: Fetch files
|
||||||
uses: Bhacaz/checkout-files@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
files: bin/scripts/lib/fonts.json
|
sparse-checkout: bin/scripts/lib
|
||||||
branch: ${{ github.sha }}
|
|
||||||
|
|
||||||
- name: Prepare file
|
- name: Prepare file
|
||||||
run: |
|
run: |
|
||||||
@ -24,7 +23,7 @@ jobs:
|
|||||||
ls -l /tmp/fonts.json
|
ls -l /tmp/fonts.json
|
||||||
|
|
||||||
- name: Fetch gh-pages
|
- name: Fetch gh-pages
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: gh-pages
|
ref: gh-pages
|
||||||
|
|
||||||
@ -47,7 +46,7 @@ jobs:
|
|||||||
update_gitignore:
|
update_gitignore:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Regenerate gitignore
|
- name: Regenerate gitignore
|
||||||
run: |
|
run: |
|
||||||
|
2
.github/workflows/lock.yml
vendored
2
.github/workflows/lock.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
action:
|
action:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v5
|
||||||
with:
|
with:
|
||||||
issue-inactive-days: '182'
|
issue-inactive-days: '182'
|
||||||
issue-comment: >
|
issue-comment: >
|
||||||
|
2
.github/workflows/packsvgs.yml
vendored
2
.github/workflows/packsvgs.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
create-symbols-font:
|
create-symbols-font:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Fetch dependencies
|
- name: Fetch dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update -y -q
|
sudo apt update -y -q
|
||||||
|
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@ -29,11 +29,11 @@ jobs:
|
|||||||
if: ${{ github.repository_owner == 'ryanoasis' }}
|
if: ${{ github.repository_owner == 'ryanoasis' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Faster version instead of - uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: Bhacaz/checkout-files@v2
|
|
||||||
with:
|
with:
|
||||||
files: package.json bin/scripts/get-font-names-from-json.sh bin/scripts/lib/fonts.json
|
sparse-checkout: -
|
||||||
branch: ${{ github.head_ref || github.ref_name }}
|
.
|
||||||
|
bin/scripts
|
||||||
|
|
||||||
- name: Determine font matrix
|
- name: Determine font matrix
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
# If the tag exists it is obviously a re-release
|
# If the tag exists it is obviously a re-release
|
||||||
|
|
||||||
# This would need a complete checkout, that we want to avoid
|
# This would need a complete checkout, that we want to avoid
|
||||||
# uses: mukunku/tag-exists-action@v1.2.0
|
# uses: mukunku/tag-exists-action
|
||||||
# with:
|
# with:
|
||||||
# tag: "v${{ steps.rel_ver.outputs.val }}"
|
# tag: "v${{ steps.rel_ver.outputs.val }}"
|
||||||
# env:
|
# env:
|
||||||
@ -135,7 +135,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Check release variables
|
- name: Check release variables
|
||||||
run: |
|
run: |
|
||||||
echo "$RELEASE_VERSION"
|
echo "$RELEASE_VERSION"
|
||||||
@ -216,7 +216,7 @@ jobs:
|
|||||||
./archive-fonts.sh "${{ matrix.font }}"
|
./archive-fonts.sh "${{ matrix.font }}"
|
||||||
|
|
||||||
- name: Upload zip and tar.xz archive for release
|
- name: Upload zip and tar.xz archive for release
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@ 4634c16e79c963813287e889244c50009e7f0981
|
||||||
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
@ -225,7 +225,7 @@ jobs:
|
|||||||
files: archives/*
|
files: archives/*
|
||||||
|
|
||||||
- name: Upload patched fonts as artifacts
|
- name: Upload patched fonts as artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: patched-fonts
|
name: patched-fonts
|
||||||
# adding multiple paths (i.e. LICENSE) is a workaround to get a least common ancestor
|
# adding multiple paths (i.e. LICENSE) is a workaround to get a least common ancestor
|
||||||
@ -246,7 +246,7 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Bump version for source files
|
- name: Bump version for source files
|
||||||
run: |
|
run: |
|
||||||
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
||||||
@ -258,7 +258,7 @@ jobs:
|
|||||||
./archive-font-patcher.sh
|
./archive-font-patcher.sh
|
||||||
|
|
||||||
- name: Upload font-patcher archive for release
|
- name: Upload font-patcher archive for release
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@ 4634c16e79c963813287e889244c50009e7f0981
|
||||||
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
@ -271,7 +271,7 @@ jobs:
|
|||||||
needs: [ setup-fonts-matrix, build, release-font-patcher ]
|
needs: [ setup-fonts-matrix, build, release-font-patcher ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Prepare repo (clear out old and obsolete fonts)
|
- name: Prepare repo (clear out old and obsolete fonts)
|
||||||
run: |
|
run: |
|
||||||
cd -- "$GITHUB_WORKSPACE/patched-fonts"
|
cd -- "$GITHUB_WORKSPACE/patched-fonts"
|
||||||
@ -279,7 +279,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Download patched fonts from build
|
- name: Download patched fonts from build
|
||||||
id: download-patched-fonts
|
id: download-patched-fonts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: patched-fonts
|
name: patched-fonts
|
||||||
path: .
|
path: .
|
||||||
@ -383,7 +383,7 @@ jobs:
|
|||||||
clean: false
|
clean: false
|
||||||
|
|
||||||
- name: Adjust release tag to include previous commit
|
- name: Adjust release tag to include previous commit
|
||||||
uses: EndBug/latest-tag@v1.5.1
|
uses: EndBug/latest-tag@v1
|
||||||
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||||
with:
|
with:
|
||||||
ref: "v${{ needs.setup-fonts-matrix.outputs.rel_version }}"
|
ref: "v${{ needs.setup-fonts-matrix.outputs.rel_version }}"
|
||||||
|
2
.github/workflows/shellcheck.yml
vendored
2
.github/workflows/shellcheck.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check scripts (1/2)
|
- name: Check scripts (1/2)
|
||||||
run: |
|
run: |
|
||||||
|
4
.github/workflows/zip-release.yml
vendored
4
.github/workflows/zip-release.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Fetch dependencies
|
- name: Fetch dependencies
|
||||||
run: sudo apt install -y -q zipcmp
|
run: sudo apt install -y -q zipcmp
|
||||||
@ -28,7 +28,7 @@ jobs:
|
|||||||
./archive-font-patcher.sh intermediate
|
./archive-font-patcher.sh intermediate
|
||||||
|
|
||||||
- name: Upload archive as artifact
|
- name: Upload archive as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: archives/FontPatcher.zip
|
path: archives/FontPatcher.zip
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user