|
4 | 4 | pull_request: |
5 | 5 | push: |
6 | 6 | branches: |
7 | | - - main |
| 7 | + - mai |
8 | 8 | jobs: |
9 | | - run-meta: |
10 | | - runs-on: ubuntu-latest |
11 | | - steps: |
12 | | - - name: Check out the code |
13 | | - uses: actions/checkout@v3 |
14 | | - - name: Setup Python |
15 | | - uses: actions/setup-python@v4 |
16 | | - with: |
17 | | - python-version: '3.10' |
18 | | - - name: Upgrade pip |
19 | | - run: | |
20 | | - # install pip=>20.1 to use "pip cache dir" |
21 | | - python -m pip install --upgrade pip wheel |
22 | | - echo "$PWD" |
23 | | - git branch |
24 | | - - name: Install pyosmeta and run update contribs |
25 | | - env: |
26 | | - GITHUB_TOKEN: ${{ github.token }} |
27 | | - run: | |
28 | | - pip install pyosmeta@git+https://github.com/pyopensci/update-web-metadata |
29 | | - echo "$PWD" |
30 | | - # Skip error for when this pr actually works |
31 | | - # python -bb -W error scripts/parse-contributors.py |
32 | | - python scripts/parse-contributors.py |
33 | | - - name: Create Pull Request |
34 | | - uses: peter-evans/create-pull-request@v5 |
35 | | - with: |
36 | | - add-paths: _data/contributors.yml |
37 | | - |
38 | | - base: main |
39 | | - branch: contribs |
40 | | - commit-message: "Update: Contributor file update" |
41 | | - delete-branch: true |
42 | | - title: Update new contributors |
43 | | - env: |
44 | | - # Token needed to provide permissions to bot to push to branch |
45 | | - # https://github.com/peter-evans/create-pull-request/issues/48#issuecomment-536204092 |
46 | | - GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }} |
| 9 | + run-meta: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - name: Check out the code |
| 13 | + uses: actions/checkout@v3 |
| 14 | + - name: Setup Python |
| 15 | + uses: actions/setup-python@v4 |
| 16 | + with: |
| 17 | + python-version: "3.10" |
| 18 | + - name: Upgrade pip |
| 19 | + run: | |
| 20 | + # install pip=>20.1 to use "pip cache dir" |
| 21 | + python -m pip install --upgrade pip wheel |
| 22 | + echo "$PWD" |
| 23 | + git branch |
| 24 | + - name: Install pyosmeta and run update contribs |
| 25 | + env: |
| 26 | + GITHUB_TOKEN: ${{ github.token }} |
| 27 | + run: | |
| 28 | + pip install pyosmeta@git+https://github.com/pyopensci/update-web-metadata |
| 29 | + echo "$PWD" |
| 30 | + # Skip error for when this pr actually works |
| 31 | + # python -bb -W error scripts/parse-contributors.py |
| 32 | + python scripts/parse-contributors.py |
| 33 | + - name: Create Pull Request |
| 34 | + uses: peter-evans/create-pull-request@v5 |
| 35 | + with: |
| 36 | + add-paths: _data/contributors.yml |
| 37 | + |
| 38 | + base: main |
| 39 | + branch: contribs |
| 40 | + commit-message: "Update: Contributor file update" |
| 41 | + delete-branch: true |
| 42 | + title: Update new contributors |
| 43 | + env: |
| 44 | + # Token needed to provide permissions to bot to push to branch |
| 45 | + # https://github.com/peter-evans/create-pull-request/issues/48#issuecomment-536204092 |
| 46 | + GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }} |
0 commit comments