Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbb0952

Browse files
chore: disable autoupgrade of GH Actions version upgrades (#21019)
Addressescoder/internal#1166
1 parentd3fe72c commitcbb0952

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎.github/workflows/dependabot.yaml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
github-token:"${{ secrets.GITHUB_TOKEN }}"
2929

3030
-name:Approve the PR
31+
if:steps.metadata.outputs.package-ecosystem != 'github-actions'
3132
run:|
3233
echo "Approving $PR_URL"
3334
gh pr review --approve "$PR_URL"
@@ -36,6 +37,7 @@ jobs:
3637
GH_TOKEN:${{secrets.GITHUB_TOKEN}}
3738

3839
-name:Enable auto-merge
40+
if:steps.metadata.outputs.package-ecosystem != 'github-actions'
3941
run:|
4042
echo "Enabling auto-merge for $PR_URL"
4143
gh pr merge --auto --squash "$PR_URL"
@@ -45,6 +47,11 @@ jobs:
4547

4648
-name:Send Slack notification
4749
run:|
50+
if [ "$PACKAGE_ECOSYSTEM" = "github-actions" ]; then
51+
STATUS_TEXT=":pr-opened: Dependabot opened PR #${PR_NUMBER} (GitHub Actions changes are not auto-merged)"
52+
else
53+
STATUS_TEXT=":pr-merged: Auto merge enabled for Dependabot PR #${PR_NUMBER}"
54+
fi
4855
curl -X POST -H 'Content-type: application/json' \
4956
--data '{
5057
"username": "dependabot",
@@ -54,7 +61,7 @@ jobs:
5461
"type": "header",
5562
"text": {
5663
"type": "plain_text",
57-
"text": ":pr-merged: Auto merge enabled for Dependabot PR #'"${PR_NUMBER}"'",
64+
"text": "'"${STATUS_TEXT}"'",
5865
"emoji":true
5966
}
6067
},
@@ -84,6 +91,7 @@ jobs:
8491
}' "${{ secrets.DEPENDABOT_PRS_SLACK_WEBHOOK }}"
8592
env:
8693
SLACK_WEBHOOK:${{ secrets.DEPENDABOT_PRS_SLACK_WEBHOOK }}
94+
PACKAGE_ECOSYSTEM:${{ steps.metadata.outputs.package-ecosystem }}
8795
PR_NUMBER:${{ github.event.pull_request.number }}
8896
PR_TITLE:${{ github.event.pull_request.title }}
8997
PR_URL:${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp