Skip to content

Commit fa8afcf

Browse files
authored
Merge pull request #264 from martinRenou/galata_update
Add galata update bot
2 parents 6589293 + f5ec67d commit fa8afcf

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Update Galata References
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
15+
jobs:
16+
update-reference-screenshots:
17+
name: Update Galata References
18+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update galata references') }}
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Configure git to use https
28+
run: git config --global hub.protocol https
29+
30+
- name: Checkout the branch from the PR that triggered the job
31+
run: hub pr checkout ${{ github.event.issue.number }}
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Setup conda
36+
uses: conda-incubator/setup-miniconda@v2
37+
with:
38+
activate-environment: ipycanvas-dev
39+
environment-file: dev-environment.yml
40+
python-version: 3.9
41+
mamba-version: "*"
42+
auto-activate-base: false
43+
channels: conda-forge
44+
45+
- name: Install the package
46+
run: pip install -vv .
47+
48+
- name: Update snapshots
49+
uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@main
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
server_url: http-get://localhost:8888/
53+
test_folder: ui-tests

0 commit comments

Comments
 (0)