mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
name: complain
|
||
|
|
||
|
on:
|
||
|
workflow_call:
|
||
|
inputs:
|
||
|
projects:
|
||
|
required: true
|
||
|
type: string
|
||
|
platform:
|
||
|
required: true
|
||
|
type: string
|
||
|
|
||
|
permissions:
|
||
|
issues: write
|
||
|
|
||
|
jobs:
|
||
|
complain:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: martialonline/workflow-status@v3
|
||
|
id: status
|
||
|
|
||
|
- uses: rtCamp/action-slack-notify@v2
|
||
|
if: ${{ env.SLACK_WEBHOOK != '' }}
|
||
|
env:
|
||
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||
|
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
|
||
|
SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }}
|
||
|
SLACK_COLOR: ${{ steps.status.outputs.status }}
|
||
|
|
||
|
- uses: actions/checkout@v3
|
||
|
if: github.ref_name == 'main'
|
||
|
|
||
|
- uses: JasonEtco/create-an-issue@v2
|
||
|
if: github.ref_name == 'main'
|
||
|
with:
|
||
|
filename: ./.github/NEW_VERSION_ISSUE_TEMPLATE.md
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
PACKAGE: ${{ inputs.projects }} (${{ inputs.platform }})
|
||
|
URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|