-
Notifications
You must be signed in to change notification settings - Fork 74
35 lines (26 loc) · 1.07 KB
/
obs-staging-debug.yml
File metadata and controls
35 lines (26 loc) · 1.07 KB
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
# This is a helper action for debugging the conditions used for starting the
# automatic OBS submission.
# See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions
name: Debug obs2branch
permissions:
contents: read
on:
push:
# allow running manually
workflow_dispatch:
env:
obs_project: ${{ fromJson(vars.OBS_PROJECTS)[github.ref_name] }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Debug
run: |
echo 'Current GitHub Action variables and values:'
echo 'vars.OBS_USER: ${{ vars.OBS_USER }}'
echo 'vars.OBS_PROJECTS: ${{ vars.OBS_PROJECTS }}'
echo 'parsed vars.OBS_PROJECTS: ${{ fromJson(vars.OBS_PROJECTS) }}'
echo 'github.ref_name: ${{ github.ref_name }}'
echo 'Target OBS project: ${{ env.obs_project }}'
echo 'Submit condition: ${{ vars.OBS_PROJECTS && env.obs_project && vars.OBS_USER }}'
echo 'Submit would start: ${{ !!(vars.OBS_PROJECTS && env.obs_project && vars.OBS_USER) }}'