-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (36 loc) · 1.17 KB
/
create_issue_if_coockiecutter.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
36
on:
push:
branches:
- master
- develop
- cookiecutter_create_issue
# on: [push]
name: Create issue if pr is merged with cookiecutter label
permissions:
contents: read
issues: write
jobs:
stuff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'pyfar/cookiecutter-pypackage'
ref: 'auto_issue'
- uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
title: ${{ github.event.issue.title }}
owner: pyfar
repo: cookiecutter-pypackage
body: |
### Context
[Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
[Codebase](https://github.com/${{ github.repository }}/tree/${{ github.sha }})
Workflow name - `${{ github.workflow }}`
Job - `${{ github.job }}`
status - `${{ job.status }}`
- run: |
echo "${{ steps.new-issue.outputs.json }}" | jq
echo "${{ steps.new-issue.outputs.json }}" | jq .state
echo "${{ steps.new-issue.outputs.json }}" | jq .labels[].name