Skip to content

Commit a9d18f7

Browse files
authored
ci(auto-merge): restore target-repo input with deprecation note (#191)
* ci(auto-merge): restore `target-repo` input with deprecation note * ci(auto-merge): refine deprecation message
1 parent 21dea88 commit a9d18f7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
default: false
1414
required: false
1515
type: boolean
16+
target-repo:
17+
description: |
18+
(Deprecated) This input is deprecated and will be removed soon. Remove it from your workflow, or it will start failing silently. To prevent fork execution, add this to your job instead: if: github.repository_owner == 'your-org'"
19+
required: false
20+
type: string
1621
secrets:
1722
GH_TOKEN:
1823
description: "Personal access token passed from the caller workflow"
@@ -27,6 +32,11 @@ jobs:
2732
runs-on: ubuntu-latest
2833

2934
steps:
35+
- name: Warn on deprecated inputs
36+
if: inputs.target-repo != ''
37+
run: |
38+
echo "::warning::The 'target-repo' input is deprecated and will be removed soon. Remove it from your workflow, or it will start failing silently. To prevent fork execution, add this to your job instead: if: github.repository_owner == 'your-org'"
39+
3040
- name: Checkout
3141
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3242
with:

0 commit comments

Comments
 (0)