mirror of https://github.com/openclaw/openclaw.git
ci: modernize GitHub Actions workflow versions
This commit is contained in:
parent
e358d57fb5
commit
6a812b621d
|
|
@ -49,7 +49,7 @@ runs:
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.node-version }}
|
||||||
check-latest: false
|
check-latest: false
|
||||||
|
|
@ -63,7 +63,7 @@ runs:
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
if: inputs.install-bun == 'true'
|
if: inputs.install-bun == 'true'
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2.1.3
|
||||||
with:
|
with:
|
||||||
bun-version: "1.3.9"
|
bun-version: "1.3.9"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,14 +61,14 @@ runs:
|
||||||
- name: Restore pnpm store cache (exact key only)
|
- name: Restore pnpm store cache (exact key only)
|
||||||
# PRs that request sticky disks still need a safe cache restore path.
|
# PRs that request sticky disks still need a safe cache restore path.
|
||||||
if: inputs.use-actions-cache == 'true' && (inputs.use-sticky-disk != 'true' || github.event_name == 'pull_request') && inputs.use-restore-keys != 'true'
|
if: inputs.use-actions-cache == 'true' && (inputs.use-sticky-disk != 'true' || github.event_name == 'pull_request') && inputs.use-restore-keys != 'true'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-store.outputs.path }}
|
path: ${{ steps.pnpm-store.outputs.path }}
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ inputs.cache-key-suffix }}-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-store-${{ inputs.cache-key-suffix }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
||||||
- name: Restore pnpm store cache (with fallback keys)
|
- name: Restore pnpm store cache (with fallback keys)
|
||||||
if: inputs.use-actions-cache == 'true' && (inputs.use-sticky-disk != 'true' || github.event_name == 'pull_request') && inputs.use-restore-keys == 'true'
|
if: inputs.use-actions-cache == 'true' && (inputs.use-sticky-disk != 'true' || github.event_name == 'pull_request') && inputs.use-restore-keys == 'true'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-store.outputs.path }}
|
path: ${{ steps.pnpm-store.outputs.path }}
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ inputs.cache-key-suffix }}-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-store-${{ inputs.cache-key-suffix }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
|
||||||
|
|
@ -20,20 +20,20 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token
|
id: app-token
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token-fallback
|
id: app-token-fallback
|
||||||
if: steps.app-token.outcome == 'failure'
|
if: steps.app-token.outcome == 'failure'
|
||||||
with:
|
with:
|
||||||
app-id: "2971289"
|
app-id: "2971289"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
||||||
- name: Handle labeled items
|
- name: Handle labeled items
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
docs_changed: ${{ steps.check.outputs.docs_changed }}
|
docs_changed: ${{ steps.check.outputs.docs_changed }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
fetch-tags: false
|
fetch-tags: false
|
||||||
|
|
@ -53,7 +53,7 @@ jobs:
|
||||||
run_windows: ${{ steps.scope.outputs.run_windows }}
|
run_windows: ${{ steps.scope.outputs.run_windows }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
fetch-tags: false
|
fetch-tags: false
|
||||||
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -101,13 +101,13 @@ jobs:
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
install-bun: "false"
|
install-bun: "false"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Build dist
|
- name: Build dist
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Upload dist artifact
|
- name: Upload dist artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: dist-build
|
name: dist-build
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
@ -120,7 +120,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -128,10 +128,10 @@ jobs:
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
install-bun: "false"
|
install-bun: "false"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Download dist artifact
|
- name: Download dist artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: dist-build
|
name: dist-build
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
@ -166,7 +166,7 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: github.event_name != 'push' || matrix.runtime != 'bun'
|
if: github.event_name != 'push' || matrix.runtime != 'bun'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -175,7 +175,7 @@ jobs:
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
install-bun: "${{ matrix.runtime == 'bun' }}"
|
install-bun: "${{ matrix.runtime == 'bun' }}"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Configure Node test resources
|
- name: Configure Node test resources
|
||||||
if: (github.event_name != 'push' || matrix.runtime != 'bun') && matrix.task == 'test' && matrix.runtime == 'node'
|
if: (github.event_name != 'push' || matrix.runtime != 'bun') && matrix.task == 'test' && matrix.runtime == 'node'
|
||||||
|
|
@ -197,7 +197,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -205,7 +205,7 @@ jobs:
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
install-bun: "false"
|
install-bun: "false"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Check types and lint and oxfmt
|
- name: Check types and lint and oxfmt
|
||||||
run: pnpm check
|
run: pnpm check
|
||||||
|
|
@ -223,7 +223,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ jobs:
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
install-bun: "false"
|
install-bun: "false"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Check docs
|
- name: Check docs
|
||||||
run: pnpm check:docs
|
run: pnpm check:docs
|
||||||
|
|
@ -243,7 +243,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -253,7 +253,7 @@ jobs:
|
||||||
node-version: "22.x"
|
node-version: "22.x"
|
||||||
cache-key-suffix: "node22"
|
cache-key-suffix: "node22"
|
||||||
install-bun: "false"
|
install-bun: "false"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Configure Node 22 test resources
|
- name: Configure Node 22 test resources
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -276,12 +276,12 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
|
|
@ -300,7 +300,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -319,7 +319,7 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
id: setup-python
|
id: setup-python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
|
|
@ -329,7 +329,7 @@ jobs:
|
||||||
.github/workflows/ci.yml
|
.github/workflows/ci.yml
|
||||||
|
|
||||||
- name: Restore pre-commit cache
|
- name: Restore pre-commit cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pre-commit
|
path: ~/.cache/pre-commit
|
||||||
key: pre-commit-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
|
key: pre-commit-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
|
|
@ -412,7 +412,7 @@ jobs:
|
||||||
command: pnpm test
|
command: pnpm test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -436,7 +436,7 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
check-latest: false
|
check-latest: false
|
||||||
|
|
@ -498,7 +498,7 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -534,7 +534,7 @@ jobs:
|
||||||
swiftformat --lint apps/macos/Sources --config .swiftformat
|
swiftformat --lint apps/macos/Sources --config .swiftformat
|
||||||
|
|
||||||
- name: Cache SwiftPM
|
- name: Cache SwiftPM
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/Library/Caches/org.swift.swiftpm
|
path: ~/Library/Caches/org.swift.swiftpm
|
||||||
key: ${{ runner.os }}-swiftpm-${{ hashFiles('apps/macos/Package.resolved') }}
|
key: ${{ runner.os }}-swiftpm-${{ hashFiles('apps/macos/Package.resolved') }}
|
||||||
|
|
@ -570,7 +570,7 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -739,12 +739,12 @@ jobs:
|
||||||
command: ./gradlew --no-daemon :app:assembleDebug
|
command: ./gradlew --no-daemon :app:assembleDebug
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
# setup-android's sdkmanager currently crashes on JDK 21 in CI.
|
# setup-android's sdkmanager currently crashes on JDK 21 in CI.
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ jobs:
|
||||||
config_file: ""
|
config_file: ""
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
|
@ -79,17 +79,17 @@ jobs:
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
install-bun: "false"
|
install-bun: "false"
|
||||||
use-sticky-disk: "true"
|
use-sticky-disk: "false"
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
if: matrix.needs_python
|
if: matrix.needs_python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
if: matrix.needs_java
|
if: matrix.needs_java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "21"
|
java-version: "21"
|
||||||
|
|
|
||||||
|
|
@ -34,13 +34,13 @@ jobs:
|
||||||
slim-digest: ${{ steps.build-slim.outputs.digest }}
|
slim-digest: ${{ steps.build-slim.outputs.digest }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Docker Builder
|
- name: Set up Docker Builder
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|
@ -135,13 +135,13 @@ jobs:
|
||||||
slim-digest: ${{ steps.build-slim.outputs.digest }}
|
slim-digest: ${{ steps.build-slim.outputs.digest }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Docker Builder
|
- name: Set up Docker Builder
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|
@ -234,10 +234,10 @@ jobs:
|
||||||
needs: [build-amd64, build-arm64]
|
needs: [build-amd64, build-arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
docs_only: ${{ steps.check.outputs.docs_only }}
|
docs_only: ${{ steps.check.outputs.docs_only }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
fetch-tags: false
|
fetch-tags: false
|
||||||
|
|
@ -41,10 +41,10 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout CLI
|
- name: Checkout CLI
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Docker Builder
|
- name: Set up Docker Builder
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
# Blacksmith can fall back to the local docker driver, which rejects gha
|
# Blacksmith can fall back to the local docker driver, which rejects gha
|
||||||
# cache export/import. Keep smoke builds driver-agnostic.
|
# cache export/import. Keep smoke builds driver-agnostic.
|
||||||
|
|
|
||||||
|
|
@ -28,25 +28,25 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token
|
id: app-token
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token-fallback
|
id: app-token-fallback
|
||||||
if: steps.app-token.outcome == 'failure'
|
if: steps.app-token.outcome == 'failure'
|
||||||
with:
|
with:
|
||||||
app-id: "2971289"
|
app-id: "2971289"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
||||||
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
|
- uses: actions/labeler@v6
|
||||||
with:
|
with:
|
||||||
configuration-path: .github/labeler.yml
|
configuration-path: .github/labeler.yml
|
||||||
repo-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
repo-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
- name: Apply PR size label
|
- name: Apply PR size label
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
@ -135,7 +135,7 @@ jobs:
|
||||||
labels: [targetSizeLabel],
|
labels: [targetSizeLabel],
|
||||||
});
|
});
|
||||||
- name: Apply maintainer or trusted-contributor label
|
- name: Apply maintainer or trusted-contributor label
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
@ -206,7 +206,7 @@ jobs:
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
- name: Apply too-many-prs label
|
- name: Apply too-many-prs label
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
@ -384,20 +384,20 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token
|
id: app-token
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token-fallback
|
id: app-token-fallback
|
||||||
if: steps.app-token.outcome == 'failure'
|
if: steps.app-token.outcome == 'failure'
|
||||||
with:
|
with:
|
||||||
app-id: "2971289"
|
app-id: "2971289"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
||||||
- name: Backfill PR labels
|
- name: Backfill PR labels
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
@ -632,20 +632,20 @@ jobs:
|
||||||
issues: write
|
issues: write
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token
|
id: app-token
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token-fallback
|
id: app-token-fallback
|
||||||
if: steps.app-token.outcome == 'failure'
|
if: steps.app-token.outcome == 'failure'
|
||||||
with:
|
with:
|
||||||
app-id: "2971289"
|
app-id: "2971289"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
||||||
- name: Apply maintainer or trusted-contributor label
|
- name: Apply maintainer or trusted-contributor label
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,12 +25,12 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
- name: Set up Docker Builder
|
- name: Set up Docker Builder
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Build minimal sandbox base (USER sandbox)
|
- name: Build minimal sandbox base (USER sandbox)
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,13 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token
|
id: app-token
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token-fallback
|
id: app-token-fallback
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Mark stale issues and pull requests (primary)
|
- name: Mark stale issues and pull requests (primary)
|
||||||
id: stale-primary
|
id: stale-primary
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v10
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
repo-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
||||||
days-before-issue-stale: 7
|
days-before-issue-stale: 7
|
||||||
|
|
@ -65,7 +65,7 @@ jobs:
|
||||||
- name: Check stale state cache
|
- name: Check stale state cache
|
||||||
id: stale-state
|
id: stale-state
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token-fallback.outputs.token || steps.app-token.outputs.token }}
|
github-token: ${{ steps.app-token-fallback.outputs.token || steps.app-token.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
@ -88,7 +88,7 @@ jobs:
|
||||||
}
|
}
|
||||||
- name: Mark stale issues and pull requests (fallback)
|
- name: Mark stale issues and pull requests (fallback)
|
||||||
if: (steps.stale-primary.outcome == 'failure' || steps.stale-state.outputs.has_state == 'true') && steps.app-token-fallback.outputs.token != ''
|
if: (steps.stale-primary.outcome == 'failure' || steps.stale-state.outputs.has_state == 'true') && steps.app-token-fallback.outputs.token != ''
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v10
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ steps.app-token-fallback.outputs.token }}
|
repo-token: ${{ steps.app-token-fallback.outputs.token }}
|
||||||
days-before-issue-stale: 7
|
days-before-issue-stale: 7
|
||||||
|
|
@ -124,13 +124,13 @@ jobs:
|
||||||
issues: write
|
issues: write
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
|
- uses: actions/create-github-app-token@v2
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- name: Lock closed issues after 48h of no comments
|
- name: Lock closed issues after 48h of no comments
|
||||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.app-token.outputs.token }}
|
github-token: ${{ steps.app-token.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Fail on tabs in workflow files
|
- name: Fail on tabs in workflow files
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -48,7 +48,7 @@ jobs:
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install actionlint
|
- name: Install actionlint
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue