Skip to content

Commit dd1062d

Browse files
committed
revert temp diff
1 parent d01bc96 commit dd1062d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/stubsabot.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ env:
1616
jobs:
1717
stubsabot:
1818
name: Upgrade stubs with stubsabot
19-
if: github.repository == 'donBarbos/typeshed'
19+
if: github.repository == 'python/typeshed'
2020
runs-on: ubuntu-latest
2121
outputs:
2222
STUBS: ${{ steps.runstubsabot.outputs.STUBS }}
2323
steps:
2424
- uses: actions/checkout@v5
25+
with:
26+
# use an ssh key so that checks automatically run on stubsabot PRs
27+
ssh-key: ${{ secrets.STUBSABOT_SSH_PRIVATE_KEY }}
28+
fetch-depth: 0
2529
- uses: actions/setup-python@v6
2630
with:
2731
python-version: "3.13"
@@ -43,7 +47,7 @@ jobs:
4347
EXIT_FILE=$(mktemp)
4448
STUBS_FILE=$(mktemp)
4549
script -q /dev/null -c '
46-
python scripts/stubsabot.py --action-level nothing
50+
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python scripts/stubsabot.py --action-level everything
4751
echo $? > '"$EXIT_FILE"'
4852
' 2>&1 | while IFS= read -r line; do
4953
echo "$line" >&5
@@ -54,13 +58,12 @@ jobs:
5458
done
5559
exit_code=$(cat "$EXIT_FILE")
5660
STUBS=$(xargs < "$STUBS_FILE")
57-
rm "$EXIT_FILE" "$STUBS_FILE"
5861
echo "STUBS=$STUBS" >> $GITHUB_OUTPUT
5962
exit $exit_code
6063
6164
stubtest-third-party:
6265
name: "stubtest: third party"
63-
if: github.repository == 'donBarbos/typeshed'
66+
if: github.repository == 'python/typeshed'
6467
runs-on: ${{ matrix.os }}
6568
needs: [stubsabot]
6669
strategy:
@@ -126,7 +129,7 @@ jobs:
126129
name: Create issue on failure
127130
runs-on: ubuntu-latest
128131
needs: [stubsabot, stubtest-third-party]
129-
if: ${{ github.repository == 'donBarbos/typeshed' && always() && (needs.stubsabot.result == 'failure' || needs.stubtest-third-party.result == 'failure') }}
132+
if: ${{ github.repository == 'python/typeshed' && always() && (needs.stubsabot.result == 'failure' || needs.stubtest-third-party.result == 'failure') }}
130133
steps:
131134
- uses: actions/github-script@v8
132135
with:

0 commit comments

Comments
 (0)