2023-02-03 04:07:32 +03:00
|
|
|
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
|
2023-02-03 04:07:32 +03:00
|
|
|
- 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'}}"
|
2023-02-03 04:07:32 +03:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-17 02:41:49 +03:00
|
|
|
if: github.ref_name == 'main'
|
2023-02-03 04:07:32 +03:00
|
|
|
- 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
|
2023-02-03 04:07:32 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
PACKAGE: ${{ inputs.projects }} (${{ inputs.platform }})
|
|
|
|
URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|