pantry/.github/workflows/complain.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

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:
2023-02-03 04:35:29 +03:00
- 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 }}
2023-02-16 03:23:35 +03:00
- run: env | grep ^GITHUB
2023-02-17 02:41:49 +03:00
- run: echo "${{ github.ref_name == 'main'}}"
- uses: actions/checkout@v3
2023-02-17 02:41:49 +03:00
if: github.ref_name == 'main'
- uses: JasonEtco/create-an-issue@v2
2023-02-17 02:41:49 +03:00
if: github.ref_name == 'main'
2023-02-03 04:15:49 +03:00
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 }}