name: new-version run-name: new-version (${{ inputs.projects }}) on: workflow_dispatch: inputs: projects: description: eg. `foo.com=1.2.3 bar.com^2.3.4` required: true type: string jobs: build: uses: ./.github/workflows/build.yml with: projects: ${{ inputs.projects }} secrets: inherit bottle: needs: [build] uses: ./.github/workflows/bottle.yml with: new-version: true secrets: inherit 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 }}