Skip to content
Prev Previous commit
Next Next commit
revert temp diff
  • Loading branch information
donbarbos committed Oct 22, 2025
commit dd1062d5870d907201a1e6bbfc3ed29579ee5640
13 changes: 8 additions & 5 deletions .github/workflows/stubsabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ env:
jobs:
stubsabot:
name: Upgrade stubs with stubsabot
if: github.repository == 'donBarbos/typeshed'
if: github.repository == 'python/typeshed'
runs-on: ubuntu-latest
outputs:
STUBS: ${{ steps.runstubsabot.outputs.STUBS }}
steps:
- uses: actions/checkout@v5
with:
# use an ssh key so that checks automatically run on stubsabot PRs
ssh-key: ${{ secrets.STUBSABOT_SSH_PRIVATE_KEY }}
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.13"
Expand All @@ -43,7 +47,7 @@ jobs:
EXIT_FILE=$(mktemp)
STUBS_FILE=$(mktemp)
script -q /dev/null -c '
python scripts/stubsabot.py --action-level nothing
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python scripts/stubsabot.py --action-level everything
echo $? > '"$EXIT_FILE"'
' 2>&1 | while IFS= read -r line; do
echo "$line" >&5
Expand All @@ -54,13 +58,12 @@ jobs:
done
exit_code=$(cat "$EXIT_FILE")
STUBS=$(xargs < "$STUBS_FILE")
rm "$EXIT_FILE" "$STUBS_FILE"
echo "STUBS=$STUBS" >> $GITHUB_OUTPUT
exit $exit_code

stubtest-third-party:
name: "stubtest: third party"
if: github.repository == 'donBarbos/typeshed'
if: github.repository == 'python/typeshed'
runs-on: ${{ matrix.os }}
needs: [stubsabot]
strategy:
Expand Down Expand Up @@ -126,7 +129,7 @@ jobs:
name: Create issue on failure
runs-on: ubuntu-latest
needs: [stubsabot, stubtest-third-party]
if: ${{ github.repository == 'donBarbos/typeshed' && always() && (needs.stubsabot.result == 'failure' || needs.stubtest-third-party.result == 'failure') }}
if: ${{ github.repository == 'python/typeshed' && always() && (needs.stubsabot.result == 'failure' || needs.stubtest-third-party.result == 'failure') }}
steps:
- uses: actions/github-script@v8
with:
Expand Down
Loading