-
-
Notifications
You must be signed in to change notification settings - Fork 7
69 lines (60 loc) · 2.37 KB
/
migrate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: migrate
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch: null
concurrency: migrate
jobs:
migrate:
name: migrate
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- name: generate token
id: generate_token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
app-id: ${{ secrets.CF_CURATOR_APP_ID }}
private-key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.CF_ADMIN_GITHUB_TOKEN }}
- uses: mamba-org/setup-micromamba@06375d89d211a1232ef63355742e9e2e564bc7f7
with:
environment-file: environment.yml
environment-name: cf-admin-migrations
condarc: |
channels:
- conda-forge
show_channel_urls: true
channel_priority: strict
solver: libmamba
- name: configure conda and install code
run: |
pip install --no-deps --no-build-isolation -e .
git config --global user.email "[email protected]"
git config --global user.name "conda-forge-admin"
git config --global pull.rebase false
- name: migrate
run: |
mkdir -p ~/.conda-smithy
echo ${STAGING_BINSTAR_TOKEN} > ~/.conda-smithy/anaconda.token
echo ${CIRCLE_TOKEN} > ~/.conda-smithy/circle.token
echo ${TRAVIS_TOKEN_B} > ~/.conda-smithy/travis.token
echo ${AZURE_TOKEN} > ~/.conda-smithy/azure.token
echo ${DRONE_TOKEN} > ~/.conda-smithy/drone.token
echo ${GITHUB_TOKEN} > ~/.conda-smithy/github.token
source ./scripts/clone_feedstock_outputs.sh
run-admin-migrations
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
DRONE_TOKEN: ${{ secrets.DRONE_TOKEN }}
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
TRAVIS_TOKEN_A: ${{ secrets.CF_LINTER_TRAVIS_TOKEN }}
TRAVIS_TOKEN_B: ${{ secrets.CF_DAEMON_TRAVIS_TOKEN }}
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
CF_WEBSERVICES_TOKEN: ${{ secrets.CF_WEBSERVICES_TOKEN }}