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
|
|
|
|
|
2023-01-25 01:21:32 +03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
issues: write
|
|
|
|
|
2022-08-09 02:50:24 +03:00
|
|
|
jobs:
|
|
|
|
build:
|
2023-02-03 01:13:38 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- darwin+x86-64
|
|
|
|
- linux+x86-64
|
|
|
|
- darwin+aarch64
|
|
|
|
- linux+aarch64
|
2022-08-09 02:50:24 +03:00
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
2022-08-17 02:29:17 +03:00
|
|
|
projects: ${{ inputs.projects }}
|
2023-02-03 01:13:38 +03:00
|
|
|
platform: ${{ matrix.platform }}
|
2022-12-21 00:54:26 +03:00
|
|
|
secrets: inherit
|
|
|
|
bottle:
|
2023-02-03 01:13:38 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- darwin+x86-64
|
|
|
|
- linux+x86-64
|
|
|
|
- darwin+aarch64
|
|
|
|
- linux+aarch64
|
2022-12-21 00:54:26 +03:00
|
|
|
needs: [build]
|
|
|
|
uses: ./.github/workflows/bottle.yml
|
2022-12-21 02:29:41 +03:00
|
|
|
with:
|
|
|
|
new-version: true
|
2023-02-03 01:13:38 +03:00
|
|
|
platform: ${{ matrix.platform }}
|
2022-12-21 00:54:26 +03:00
|
|
|
secrets: inherit
|
2023-02-01 09:13:09 +03:00
|
|
|
index_data:
|
|
|
|
needs: [bottle]
|
|
|
|
uses: ./.github/workflows/index-data.yml
|
|
|
|
with:
|
|
|
|
projects: ${{ inputs.projects }}
|
|
|
|
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 }}
|
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' }}
|
2023-01-31 23:01:35 +03:00
|
|
|
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 }}
|