mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 23:00:48 +08:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
2dda4ee55a | |||
e01a0b34d8 | |||
5195d74ff1 | |||
6e58674f53 | |||
ced3572c0a | |||
3ef624f5d9 | |||
f7f95de95a |
6
.github/workflows/deploy-dist-to-surge.yml
vendored
6
.github/workflows/deploy-dist-to-surge.yml
vendored
@ -1,4 +1,8 @@
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "deploy-dist-to-surge.yml/**"
|
||||
- ".github/workflows/deploy-dist-to-surge.yml"
|
||||
push:
|
||||
paths:
|
||||
- "deploy-dist-to-surge.yml/**"
|
||||
@ -19,4 +23,4 @@ jobs:
|
||||
id: surge_deploy
|
||||
- name: Check Surge URL
|
||||
run: |
|
||||
echo "steps.surge_deploy.outputs.url: ${{ steps.surge_deploy.outputs.url }}"
|
||||
echo "steps.surge_deploy.outputs.url: ${{ steps.surge_deploy.outputs.url }}"
|
||||
|
14
.github/workflows/docker-build-push.yml
vendored
14
.github/workflows/docker-build-push.yml
vendored
@ -1,4 +1,8 @@
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "docker-build-push/**"
|
||||
- ".github/workflows/docker-build-push.yml"
|
||||
push:
|
||||
paths:
|
||||
- "docker-build-push/**"
|
||||
@ -8,7 +12,11 @@ env:
|
||||
|
||||
jobs:
|
||||
job:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-15] # https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#用于公共存储库的-github-托管的标准运行器
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: yanhao98/semantic-release-action@main
|
||||
@ -29,12 +37,12 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: yanhao98/composite-actions/docker-build-push@main
|
||||
if: steps.semantic.outputs.next_release_published == 'true'
|
||||
# if: steps.semantic.outputs.next_release_published == 'true'
|
||||
id: docker-build-push
|
||||
with:
|
||||
build_file: ./Dockerfile.test
|
||||
build_platforms: linux/amd64,linux/arm64
|
||||
build_push: true
|
||||
build_push: ${{ matrix.os == 'ubuntu-latest' && steps.semantic.outputs.next_release_published == 'true' }}
|
||||
build_load: false
|
||||
metadata_images: |
|
||||
docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example
|
||||
|
6
.github/workflows/setup-node-environment.yml
vendored
6
.github/workflows/setup-node-environment.yml
vendored
@ -1,4 +1,8 @@
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "setup-node-environment/**"
|
||||
- ".github/workflows/setup-node-environment.yml"
|
||||
push:
|
||||
paths:
|
||||
- "setup-node-environment/**"
|
||||
@ -8,11 +12,11 @@ env:
|
||||
|
||||
jobs:
|
||||
job:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
container-image: ["", "yanhao98/runner-images:pnpm"]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ matrix.container-image }}
|
||||
steps:
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"https://git.1-h.cc/examples/renovate-example/raw/branch/main/default.json5"
|
||||
"https://git.1-h.cc/examples/renovate-example/raw/branch/main/default.json5",
|
||||
":automergeAll"
|
||||
],
|
||||
"dependencyDashboard": false
|
||||
}
|
Reference in New Issue
Block a user