Skip to content

Commit 5876172

Browse files
authored
Fix screengrab workflows (#1453)
* Fix demo-stacks command * Fix workflow * Use github app for repos * Use github app for repos * Use github app for repos * Use github app for repos * Update screengrabs.yaml * Change cancel-in-progress to false in vhs.yaml * Add 'no-release' label to screengrabs PR * Fix screengrabs workflow * Update website-preview-deploy.yml * Change environment from demo to screengrabs * Change environment from 'screengrabs' to 'demo'
1 parent 4cdbe27 commit 5876172

4 files changed

Lines changed: 27 additions & 6 deletions

File tree

.github/settings.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ environments:
1111
custom_branches:
1212
- name: "**/*"
1313
type: branch
14-
14+
15+
- name: screengrabs
16+
deployment_branch_policy:
17+
custom_branches:
18+
- name: "main"
19+
type: branch
20+
- name: "**/*"
21+
type: branch
22+
- name: "*"
23+
type: branch
24+
1525
- name: demo
1626
deployment_branch_policy:
1727
custom_branches:

.github/workflows/screengrabs.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
build:
3636
needs: [prepare]
3737
runs-on: ubuntu-latest
38+
environment: demo
3839
steps:
3940
- name: Install dependencies
4041
run: |
@@ -68,11 +69,19 @@ jobs:
6869
make -C demo/screengrabs build-all install
6970
git add -A
7071
git status
72+
env:
73+
ATMOS_PAGER: "false"
74+
75+
- uses: actions/create-github-app-token@v1
76+
id: github-app
77+
with:
78+
app-id: ${{ vars.BOT_GITHUB_APP_ID }}
79+
private-key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY }}
7180

7281
- name: Create or update PR
7382
uses: peter-evans/create-pull-request@v7
7483
with:
75-
token: ${{ secrets.GITHUB_TOKEN }}
84+
token: ${{ steps.github-app.outputs.token }}
7685
branch: "chore/update-build-screengrabs-for-${{ needs.prepare.outputs.version }}"
7786
title: "Update screengrabs for ${{ needs.prepare.outputs.version }}"
7887
delete-branch: true
@@ -82,5 +91,7 @@ jobs:
8291
body: |
8392
This PR updates the screengrabs for Atmos version ${{ needs.prepare.outputs.version }}.
8493
base: main
85-
labels: "no-release"
94+
labels: "no-release"
95+
96+
8697

.github/workflows/vhs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17-
cancel-in-progress: true
17+
cancel-in-progress: false
1818

1919
steps:
2020
- uses: actions/checkout@v4
@@ -61,7 +61,7 @@ jobs:
6161
file: ${{fromJson(needs.prepare.outputs.matrix)}}
6262
concurrency:
6363
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.file }}
64-
cancel-in-progress: true
64+
cancel-in-progress: false
6565
steps:
6666
- uses: actions/checkout@v4
6767

demo/screengrabs/demo-stacks.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
atmos packer --help
55
atmos packer version --help
6-
atmos packer validate--help
6+
atmos packer validate --help
77
atmos packer inspect --help
88
atmos packer init --help
99
atmos packer build --help

0 commit comments

Comments
 (0)