LoginSignup
0
0

More than 1 year has passed since last update.

GitHub Actionsのワークフローの一部を無効化する

Last updated at Posted at 2022-11-23

1. ワークフロー全体を無効化する

on.<push|pull_request|pull_request_target|workflow_run>.branches-ignore

on:
  push:
    branches-ignore: ['**']

2. ジョブを無効化する

jobs.<job_id>.if

jobs:
  test:
    if: false

3. ステップを無効化する

jobs.<job_id>.steps[*].if

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - run: echo 'Hello, world!'
        if: false

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0