forked from snapcrafters/cumulonimbus
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.05 KB
/
release-to-candidate.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
name: Release
on:
# Run the workflow each time new commits are pushed to the candidate branch.
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
screenshots:
name: 📸 Gather screenshots
runs-on: ubuntu-latest
steps:
- name: 📸 Gather screenshots
uses: snapcrafters/ci/get-screenshots@main
with:
issue-number: "123"
github-token: ${{ secrets.GITHUB_TOKEN }}
screenshots-token: "random-string"
- name: Check if previous step failed
if: ${{ failure() && steps.screenshot_step.outcome == 'failure' }}
run: |
echo "Gathering screenshots failed. Entering debug mode..."
# You can add additional commands here to handle the failure as needed
- name: Setup upterm session
if: ${{ always() }} # This ensures that the upterm session is set up regardless of previous step success or failure
uses: lhotari/action-upterm@v1