2023-09-30 19:15:42 +03:00
|
|
|
name: pkgx/pantry/complain
|
2023-04-09 15:26:48 +03:00
|
|
|
description: creates an issue for failure conditions
|
|
|
|
|
|
|
|
inputs:
|
2023-12-13 13:42:25 +03:00
|
|
|
pkg:
|
|
|
|
description: project to complain about
|
2023-04-09 15:26:48 +03:00
|
|
|
required: true
|
|
|
|
token:
|
2023-08-16 01:00:40 +03:00
|
|
|
description: github token
|
2023-04-09 15:26:48 +03:00
|
|
|
required: true
|
|
|
|
default: ${{ github.token }}
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Find Issue
|
|
|
|
uses: actions-cool/issues-helper@v3
|
|
|
|
id: find
|
|
|
|
with:
|
|
|
|
actions: 'find-issues'
|
|
|
|
token: ${{ inputs.token }}
|
|
|
|
issue-state: 'open'
|
2023-12-13 19:23:45 +03:00
|
|
|
title-includes: '❌ build issues: ${{ inputs.pkg }}'
|
2023-04-09 15:26:48 +03:00
|
|
|
labels: 'build-failure'
|
|
|
|
|
|
|
|
- name: Create Issue
|
|
|
|
uses: actions-cool/issues-helper@v3
|
|
|
|
id: create
|
|
|
|
if: ${{ steps.find.outputs.issues == '[]' }}
|
|
|
|
with:
|
|
|
|
actions: 'create-issue'
|
|
|
|
token: ${{ inputs.token }}
|
2023-12-13 19:23:45 +03:00
|
|
|
title: '❌ build issues: ${{ inputs.pkg }}'
|
|
|
|
body: 'Running log of build failure for ${{ inputs.pkg }}'
|
2023-04-09 15:26:48 +03:00
|
|
|
labels: 'build-failure'
|
|
|
|
assignees: 'jhheider'
|
|
|
|
|
|
|
|
- name: Log Comment
|
|
|
|
uses: actions-cool/issues-helper@v3
|
|
|
|
with:
|
|
|
|
actions: 'create-comment'
|
|
|
|
token: ${{ inputs.token }}
|
|
|
|
issue-number: ${{ steps.create.outputs.issue-number || fromJSON(steps.find.outputs.issues)[0].number }}
|
|
|
|
body: |
|
|
|
|
# Build failure
|
2023-12-13 13:42:25 +03:00
|
|
|
## ${{ inputs.pkg }}
|
2023-04-09 15:26:48 +03:00
|
|
|
|
|
|
|
logs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|