我在 GitHub 上有一个 CircleCI 构建任务,我只想在master
分支上运行,但它目前在每个分支上运行。我的有什么问题config.yml
吗?
jobs:
build:
docker:
- image: 'cimg/python:3.6'
steps:
- checkout
- aws-s3/sync:
arguments: '--delete'
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-region: AWS_REGION
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
from: src
to: 's3://somebucket'
workflows:
s3-sync:
jobs:
- build:
filters:
branches:
only:
- master