Skip to content

Commit d23ade7

Browse files
authored
Merge pull request #154 from creativecommons/actions-fixes
Separate system and app python configuration (fix order of operations)
2 parents 42bfe1c + e3f4f12 commit d23ade7

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/normalize_repos.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
with:
15-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
1613
- name: Set up Python 3.9
1714
uses: actions/setup-python@v4
1815
with:
1916
python-version: 3.9
20-
- name: Install dependencies
17+
- name: Install system dependencies
2118
run: |
2219
python -m pip install --upgrade pip
2320
python -m pip install pipenv
21+
- uses: actions/checkout@v3
22+
with:
23+
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
24+
- name: Install app dependencies
25+
run: |
2426
pipenv sync
25-
- name: Export token to env and run normalize script
27+
- name: Run script with token in env
2628
run: |
2729
pipenv run ./normalize_repos.py
2830
env:

.github/workflows/push_data_to_ccos.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
1312
- name: Set up Python 3.9
1413
uses: actions/setup-python@v4
1514
with:
1615
python-version: 3.9
17-
- name: Install dependencies
16+
- name: Install system dependencies
1817
run: |
1918
python -m pip install --upgrade pip
2019
python -m pip install pipenv
20+
- uses: actions/checkout@v3
21+
- name: Install app dependencies
22+
run: |
2123
pipenv sync
22-
- name: Export token to env and run script
24+
- name: Run script with tokens in env
2325
run: |
2426
pipenv run ./push_data_to_ccos.py
2527
env:

.github/workflows/sync_community_teams.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
1312
- name: Set up Python 3.9
1413
uses: actions/setup-python@v4
1514
with:
1615
python-version: 3.9
17-
- name: Install dependencies
16+
- name: Install system dependencies
1817
run: |
1918
python -m pip install --upgrade pip
2019
python -m pip install pipenv
20+
- uses: actions/checkout@v3
21+
- name: Install app dependencies
22+
run: |
2123
pipenv sync
22-
- name: Export token to env and run script
24+
- name: Run script with tokens in env
2325
run: |
2426
pipenv run ./sync_community_teams.py
2527
env:

0 commit comments

Comments
 (0)