Azure Pipelinesの除外パス指定が機能していなかったのを修正する #1500
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR の目的
タイトル通りです。
カテゴリ
PR の背景
#1494 (comment) を参照してください。
新しいGitHub Actionsのワークフローを追加するPRに対して、Azure PipelinesのPRビルドが走っています。
GitHub Actionsのワークフローを変更してもAzure Pipelinesのビルドには影響しないので、除外しておくのが正しいように思います。 #1498 で既存コードをコピペしたところ機能しなかったので再対応します。
PR のメリット
変更対象がGitHub Actionsのワークフロー定義だけのPRに対してAzure PipelinesのPRビルドが走らなくなります。
PR のデメリット (トレードオフとかあれば)
.github/以外の除外パスについては対処しません。
仕様・動作説明
サクラエディタの仕様・機能を変更しないPRです。
変更対象(YAML)の仕様については公式サイトを参照してください。
https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#triggers
明記されていませんが、AppveyorともGitHub Actionsとも異なる仕様があるようです。
*
記号を入れることでパターンを指定できます。GitHub Actionsと異なり
*
を含むパターンを引用符でくくる必要はありません。つまり既存コードにある
'**/*.md'
も機能していません。.github/workflows/*.yml
と書いた場合、変更は除外されますが追加・削除は除外されません。.github/*
と書くことにより、.github/workflows/
フォルダへの追加・削除が除外されます。PR の影響範囲
変更対象がGitHub Actionsのワークフロー定義だけのPR/マージに対してビルドが走らなくなります。
テスト内容
別リポジトリで
.github/workflows/
配下のファイル変更とファイル追加を行い、問題なく除外パスが機能することを確認しました。関連 issue, PR
#1498
#1494
#1259
参考資料