pantry/.github/workflows/new-version.yml

51 lines
1.5 KiB
YAML
Raw Normal View History

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 }})
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`
required: true
type: string
2023-01-25 01:21:32 +03:00
permissions:
contents: read
issues: write
jobs:
build:
uses: ./.github/workflows/build.yml
with:
2022-08-17 02:29:17 +03:00
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 }}
2023-01-25 01:21:32 +03:00
- uses: actions/checkout@v3
if: ${{ steps.status.outputs.status == 'failure' }}
- uses: JasonEtco/create-an-issue@v2
if: ${{ steps.status.outputs.status == 'failure' }}
with:
filename: .github/NEW_VERSION_ISSUE_TEMPLATE.md
2023-01-25 01:21:32 +03:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE: ${{ inputs.projects }}
URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}