generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (31 loc) · 1022 Bytes
/
action.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
name: Action Test
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set target branch
run: echo "TARGET_BRANCH=${{ github.ref }}" >> $GITHUB_ENV
- name: Set target branch for PR event
if: ${{ github.event_name == 'pull_request' }}
run: echo "TARGET_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
- name: Dispatch and return Run ID
id: return_dispatch
uses: Codex-/return-dispatch@main
with:
token: ${{ secrets.TOKEN }}
ref: ${{ env.TARGET_BRANCH }}
repo: return-dispatch
owner: codex-
workflow: dispatch.yml
workflow_inputs: '{"cake":"delicious"}'
- name: Await Run ID ${{ steps.return_dispatch.outputs.run_id }}
uses: ./
with:
token: ${{ github.token }}
repo: return-dispatch
owner: codex-
run_id: ${{ steps.return_dispatch.outputs.run_id }}