Skip to content

Commit 560630f

Browse files
fix: actionlint SC2016エラーをインライン指示で修正
actionlintがスクリプト先頭に`set -eo pipefail`を挿入するため、 ファイルレベルの`# shellcheck disable=SC2016`が効かない。 各GraphQL/jqクエリの直前にインラインで配置することで解決。
1 parent 57ea6ec commit 560630f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/update-renovate-tracking.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
STATUS_FIELD: ${{ inputs.status-field-name }}
5050
DRY_RUN: ${{ inputs.dry-run }}
5151
run: |
52-
# shellcheck disable=SC2016
5352
set -euo pipefail
5453
5554
echo "Fetching project #${PROJECT_NUMBER} from ${ORG}..."
5655
5756
# ── Step 1: Get project metadata (field IDs, option IDs) ──
57+
# shellcheck disable=SC2016
5858
META=$(gh api graphql -f query='
5959
query($org: String!, $number: Int!) {
6060
organization(login: $org) {
@@ -110,6 +110,7 @@ jobs:
110110
echo "Tracking field: ${TRACKING_FIELD_ID}, Tracked=${TRACKED_OPT}, Closed=${CLOSED_OPT}"
111111
112112
# ── Step 2: Fetch all Renovate PRs from the project ──
113+
# shellcheck disable=SC2016
113114
ITEMS_QUERY='
114115
query($org: String!, $number: Int!, $cursor: String) {
115116
organization(login: $org) {
@@ -142,6 +143,7 @@ jobs:
142143
}
143144
'
144145
146+
# shellcheck disable=SC2016
145147
JQ_FILTER='
146148
[.data.organization.projectV2.items.nodes[] |
147149
select(.content.__typename == "PullRequest") |
@@ -188,6 +190,7 @@ jobs:
188190
189191
# ── Step 3: Apply tracking updates ──
190192
update_tracking() {
193+
# shellcheck disable=SC2016
191194
gh api graphql -f query='
192195
mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $optionId: String!) {
193196
updateProjectV2ItemFieldValue(input: {

.github/workflows/update-tracking-status.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
echo "Fetching project #${PROJECT_NUMBER} from ${ORG}..."
5555
5656
# ── Step 1: Get project metadata (field IDs, option IDs) ──
57+
# shellcheck disable=SC2016
5758
META=$(gh api graphql -f query='
5859
query($org: String!, $number: Int!) {
5960
organization(login: $org) {
@@ -138,6 +139,7 @@ jobs:
138139
139140
# ── Step 3: Apply updates via GraphQL mutation ──
140141
update_tracking() {
142+
# shellcheck disable=SC2016
141143
gh api graphql -f query='
142144
mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $optionId: String!) {
143145
updateProjectV2ItemFieldValue(input: {

0 commit comments

Comments
 (0)