Revert "Remove manual dispatches"

This reverts commit dde88f9bd9.
This commit is contained in:
okx-code
2024-03-21 19:49:10 +00:00
parent de08658fc5
commit d07da22bbf
4 changed files with 53 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
name: 🐘 Gradle | Check All
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]

View File

@@ -2,6 +2,7 @@
name: 🔎 Lint Yaml
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]

View File

@@ -2,11 +2,31 @@
name: 🐋 Container | Publish
on:
workflow_dispatch:
inputs:
project:
required: true
description: 'The container to publish'
type: string
version:
required: true
description: 'The version to release'
type: string
category:
required: true
description: 'The category of project'
type: choice
options:
- containers
push:
tags:
- 'containers/*/v*.*.*'
jobs:
# This job either uses the inputs from the workflow_dispatch event,
# or will split values out of the pushed tag.
# This allows the release manager to either create a release themselves and have this job pick it up,
# Or run this job to create a release.
determine_values:
name: 🔎 Determine Values
runs-on: ubuntu-latest
@@ -20,18 +40,21 @@ jobs:
- name: 🔎 Determine Project Values
id: determine_values
env:
CATEGORY_OVERRIDE: ${{ inputs.category }}
PROJECT_OVERRIDE: ${{ inputs.project }}
VERSION_OVERRIDE: ${{ inputs.version }}
TAG: ${{ github.ref_name }}
run: |
category=${TAG%%/*}
category=${CATEGORY_OVERRIDE:-${TAG%%/*}}
echo "category=${category}"
echo "category=${category}" >> $GITHUB_OUTPUT
version=${TAG##*/}
version=${VERSION_OVERRIDE:-${TAG##*/}}
echo "version=${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
project=${TAG#*/}
project=${project%/*}
project=${PROJECT_OVERRIDE:-${TAG#*/}}
project=${PROJECT_OVERRIDE:-${project%/*}}
echo "project=${project}"
echo "project=${project}" >> $GITHUB_OUTPUT

View File

@@ -3,11 +3,31 @@
name: 🐘 Gradle | Publish Project
on:
workflow_dispatch:
inputs:
category:
required: true
description: 'The category of project'
type: choice
options:
- plugins
project:
required: true
description: 'The project to build'
type: string
version:
required: true
description: 'The version to release'
type: string
push:
tags:
- 'plugins/*/v*.*.*'
jobs:
# This job either uses the inputs from the workflow_dispatch event,
# or will split values out of the pushed tag.
# This allows the release manager to either create a release themselves and have this job pick it up,
# Or run this job to create a release.
determine_values:
name: 🔎 Determine Values
runs-on: ubuntu-latest
@@ -23,16 +43,16 @@ jobs:
env:
TAG: ${{ github.ref_name }}
run: |
category=${TAG%%/*}
category=${CATEGORY_OVERRIDE:-${TAG%%/*}}
echo "category=${category}"
echo "category=${category}" >> $GITHUB_OUTPUT
version=${TAG##*/}
version=${VERSION_OVERRIDE:-${TAG##*/}}
echo "version=${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
project=${TAG#*/}
project=${project%/*}
project=${PROJECT_OVERRIDE:-${TAG#*/}}
project=${PROJECT_OVERRIDE:-${project%/*}}
echo "project=${project}"
echo "project=${project}" >> $GITHUB_OUTPUT