mirror of
https://github.com/yanhao98/composite-actions.git
synced 2026-03-22 06:10:30 +08:00
chore(deps): update github-actions
This commit is contained in:
@@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 🔑 登录 GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
@@ -50,12 +50,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
@@ -103,7 +103,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🗄️ 缓存Docker层
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-IMAGE_NAME-${{ github.sha }}
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
outputs:
|
||||
lock_file_content: ${{ steps.generate_lock.outputs.lock_file_content }}
|
||||
steps:
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@v5
|
||||
with:
|
||||
version: latest
|
||||
standalone: true
|
||||
|
||||
@@ -64,7 +64,7 @@ runs:
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
context: git
|
||||
# flavor
|
||||
@@ -74,14 +74,14 @@ runs:
|
||||
# sep-labels: ','
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
id: build
|
||||
uses: docker/build-push-action@v6
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
file: ${{ inputs.file }}
|
||||
context: ${{ inputs.context }}
|
||||
|
||||
@@ -187,7 +187,7 @@ runs:
|
||||
printf " %-16s %s\n" "nodeVersion:" "${node_version}"
|
||||
echo "::endgroup::"
|
||||
|
||||
- uses: pnpm/action-setup@v4 # https://github.com/pnpm/action-setup?tab=readme-ov-file#inputs
|
||||
- uses: pnpm/action-setup@v5 # https://github.com/pnpm/action-setup?tab=readme-ov-file#inputs
|
||||
if: steps.prepare.outputs.pnpmInstalled == 'false'
|
||||
with:
|
||||
# https://github.com/pnpm/action-setup/blob/master/action.yml
|
||||
@@ -208,7 +208,7 @@ runs:
|
||||
echo "pnpmStoreDir=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||
|
||||
- id: cache-pnpm-restore
|
||||
uses: actions/cache/restore@v4 # https://github.com/actions/cache/blob/main/restore/action.yml
|
||||
uses: actions/cache/restore@v5 # https://github.com/actions/cache/blob/main/restore/action.yml
|
||||
if: steps.prepare.outputs.pnpmLockExists == 'true'
|
||||
with:
|
||||
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
||||
@@ -252,7 +252,7 @@ runs:
|
||||
|
||||
- id: cache-pnpm-save
|
||||
if: always() && steps.prepare.outputs.pnpmLockExists == 'true' && steps.cache-pnpm-restore.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v4
|
||||
uses: actions/cache/save@v5
|
||||
with:
|
||||
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
||||
key: ${{ steps.cache-pnpm-restore.outputs.cache-primary-key }}
|
||||
|
||||
Reference in New Issue
Block a user