-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 798 Bytes
/
test.yml
File metadata and controls
33 lines (30 loc) · 798 Bytes
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
---
name: test
on:
push:
branches:
- "main"
tags:
- 'v*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Run test workflow
run : echo
- name: Check branch
id: check_branch
run: |
if [ "$GITHUB_REF" = "refs/heads/main" ];then
echo "main=true" >> $GITHUB_OUTPUT
else
echo "main=false" >> $GITHUB_OUTPUT
fi
- uses: convictional/trigger-workflow-and-wait@v1.6.5
with:
owner: rcmdnk
repo: python-action-test
github_token: ${{ secrets.PYTHON_ACTION_TEST_TOKEN }}
workflow_file_name: test.yml
propagate_failure: true
client_payload: "{\"head_python_action\": \"${{ steps.check_branch.outputs.main }}\"}"