|
10 | 10 | schedule:
|
11 | 11 | - cron: "0 0 * * 2"
|
12 | 12 |
|
| 13 | +permissions: {} |
| 14 | + |
13 | 15 | jobs:
|
14 | 16 | pre-list-legacy:
|
15 | 17 | strategy:
|
|
20 | 22 | runs-on: ubuntu-latest
|
21 | 23 |
|
22 | 24 | steps:
|
23 |
| - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 25 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
24 | 26 | with:
|
25 | 27 | persist-credentials: false
|
26 | 28 |
|
@@ -49,14 +51,14 @@ jobs:
|
49 | 51 | strategy:
|
50 | 52 | matrix:
|
51 | 53 | python:
|
52 |
| - - "3.7" |
53 |
| - - "3.8" |
| 54 | + # - "3.7" # EOL |
| 55 | + # - "3.8" # EOL |
54 | 56 | - "3.9"
|
55 | 57 |
|
56 | 58 | runs-on: ubuntu-latest
|
57 | 59 |
|
58 | 60 | steps:
|
59 |
| - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 61 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
60 | 62 | with:
|
61 | 63 | persist-credentials: false
|
62 | 64 |
|
@@ -115,40 +117,28 @@ jobs:
|
115 | 117 | - "3.11"
|
116 | 118 | - "3.12"
|
117 | 119 | - "3.13"
|
| 120 | + - "3.14" |
118 | 121 |
|
119 | 122 | runs-on: ubuntu-latest
|
120 | 123 |
|
121 | 124 | steps:
|
122 |
| - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 125 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
123 | 126 | with:
|
124 | 127 | persist-credentials: false
|
125 | 128 |
|
126 |
| - |
127 | 129 | - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
128 | 130 | with:
|
129 | 131 | python-version: ${{ matrix.python }}
|
| 132 | + allow-prereleases: true |
130 | 133 |
|
131 | 134 | - name: walk modules
|
132 | 135 | env:
|
133 | 136 | LISTGEN_PYTHON_VERSION: ${{ matrix.python }}
|
134 |
| - LISTGEN_DRY_RUN: ${{ inputs.dry-run }} |
135 |
| - run: | |
136 |
| - python ./support/walk-modules.py "${LISTGEN_PYTHON_VERSION}.txt" |
137 |
| -
|
138 |
| - if [[ -f "./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt"" ]]; then |
139 |
| - sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \ |
140 |
| - ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \ |
141 |
| - "${LISTGEN_PYTHON_VERSION}.txt" |
142 |
| - else |
143 |
| - sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \ |
144 |
| - "${LISTGEN_PYTHON_VERSION}.txt" |
145 |
| - fi |
| 137 | + run: python ./support/walk-modules.py ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" |
146 | 138 |
|
147 |
| - rm "${LISTGEN_PYTHON_VERSION}.txt" |
148 |
| -
|
149 |
| - if [[ "${LISTGEN_DRY_RUN}" == "true" ]]; then |
150 |
| - git diff |
151 |
| - fi |
| 139 | + - name: show diff |
| 140 | + if: ${{ inputs.dry-run }} |
| 141 | + run: git diff |
152 | 142 |
|
153 | 143 | - name: create PR
|
154 | 144 | if: ${{ !inputs.dry-run }}
|
|
0 commit comments