-
-
Notifications
You must be signed in to change notification settings - Fork 35
74 lines (63 loc) · 2.05 KB
/
automerge.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
70
71
72
73
name: automerge
run-name: >-
automerge: conda-forge/${{ inputs.repo }}@${{ inputs.sha }} [uuid=${{ inputs.uuid }}]
on:
workflow_dispatch:
inputs:
repo:
description: 'the repository to run on'
required: true
type: string
sha:
description: 'the commit SHA to possibly merge'
required: true
type: string
uuid:
description: 'a unique identifier for this run'
required: true
type: string
env:
PY_COLORS: 1
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
automerge:
name: automerge
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: setup conda
uses: mamba-org/setup-micromamba@068f1ab4b37ed9b3d9f73da7db90a0cda0a48d29 # v1
with:
environment-file: conda-lock.yml
environment-name: webservices
condarc: |
show_channel_urls: true
channel_priority: strict
channels:
- conda-forge
- name: generate token
id: generate_token
uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1
with:
app-id: ${{ secrets.CF_CURATOR_APP_ID }}
private-key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: install code
run: |
pip install --no-deps --no-build-isolation -e .
- name: automerge
run: |
git config --global user.name "conda-forge-webservices[bot]"
git config --global user.email "91080706+conda-forge-webservices[bot]@users.noreply.github.com"
git config --global pull.rebase false
conda-forge-webservices-automerge \
--repo=${{ inputs.repo }} \
--sha=${{ inputs.sha }}
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
GH_TOKEN_FOR_ADMIN: ${{ secrets.CF_ADMIN_GITHUB_TOKEN }}