update: workflows 配置更新

This commit is contained in:
binaryify 2024-04-12 09:43:03 +08:00
parent 2ae029fb2a
commit 4ad08e0222
3 changed files with 5 additions and 5 deletions

View File

@ -7,12 +7,12 @@ on:
jobs: jobs:
build: build:
if: github.event.base_ref == 'refs/heads/master' if: github.event.base_ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Build image job name: Build image job
steps: steps:
- name: Checkout master - name: Checkout main
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Get version - name: Get version
id: get_version id: get_version

View File

@ -2,7 +2,7 @@ name: Update Docker Hub Description
on: on:
push: push:
branches: branches:
- master - main
paths: paths:
- README.MD - README.MD
- .github/workflows/DockerHub-Description.yml - .github/workflows/DockerHub-Description.yml

View File

@ -2,9 +2,9 @@ name: Node.js CI
on: on:
pull_request: pull_request:
branches: [ master ] branches: [ main ]
push: push:
branches: [ master ] branches: [ main ]
permissions: permissions:
contents: read contents: read