2022-08-31 19:36:54 +03:00
|
|
|
name: new-version
|
2022-10-04 01:32:49 +03:00
|
|
|
run-name: new-version (${{ inputs.projects }})
|
2022-08-09 02:50:24 +03:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
projects:
|
2022-12-15 02:38:20 +03:00
|
|
|
description: eg. `foo.com=1.2.3 bar.com^2.3.4`
|
2022-08-09 02:50:24 +03:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
2022-08-17 02:29:17 +03:00
|
|
|
projects: ${{ inputs.projects }}
|
2022-12-21 00:54:26 +03:00
|
|
|
secrets: inherit
|
|
|
|
bottle:
|
|
|
|
needs: [build]
|
|
|
|
uses: ./.github/workflows/bottle.yml
|
2022-12-21 02:29:41 +03:00
|
|
|
with:
|
|
|
|
new-version: true
|
2022-12-21 00:54:26 +03:00
|
|
|
secrets: inherit
|
2023-01-05 04:03:40 +03:00
|
|
|
|
|
|
|
complain:
|
|
|
|
if: failure()
|
|
|
|
needs: [build, bottle]
|
|
|
|
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 }} ${{ steps.status.outputs.status }}
|
|
|
|
SLACK_COLOR: ${{ steps.status.outputs.status }}
|