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:
build:
if: github.event.base_ref == 'refs/heads/master'
if: github.event.base_ref == 'refs/heads/main'
runs-on: ubuntu-latest
name: Build image job
steps:
- name: Checkout master
- name: Checkout main
uses: actions/checkout@v3
- name: Get version
id: get_version

View File

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

View File

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