Skip to content

Commit 603d6b0

Browse files
committed
Update workflow
1 parent ba67175 commit 603d6b0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ciff-example-command.yml

+31
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,47 @@ jobs:
66
createPullRequest:
77
runs-on: ubuntu-latest
88
steps:
9+
# Get the target repository and branch
10+
- name: Get the target repository and branch
11+
id: vars
12+
run: |
13+
repository=${{ github.event.client_payload.slash_command.repository }}
14+
if [[ -z "$repository" ]]; then repository=${{ github.repository }}; fi
15+
echo ::set-output name=repository::$repository
16+
branch=${{ github.event.client_payload.slash_command.branch }}
17+
if [[ -z "$branch" ]]; then branch="master"; fi
18+
echo ::set-output name=branch::$branch
19+
20+
# Checkout the branch to test
921
- uses: actions/checkout@v2
22+
with:
23+
repository: ${{ steps.vars.outputs.repository }}
24+
ref: ${{ steps.vars.outputs.branch }}
25+
26+
# Test create
27+
- name: Create Issue From File
28+
id: ciff
29+
uses: ./
30+
with:
31+
title: An example issue
32+
content-filepath: ./example-content/output.md
33+
labels: report, automated issue
34+
assignees: peter-evans
35+
project: Example Project
36+
project-column: To do
37+
38+
# Test update
1039
- name: Create Issue From File
1140
uses: ./
1241
with:
42+
issue-number: ${{ steps.ciff.outputs.issue-number }}
1343
title: An example issue
1444
content-filepath: ./example-content/output.md
1545
labels: report, automated issue
1646
assignees: peter-evans
1747
project: Example Project
1848
project-column: To do
49+
1950
- name: Add reaction
2051
uses: peter-evans/create-or-update-comment@v1
2152
with:

0 commit comments

Comments
 (0)