Remove manual dispatches

This commit is contained in:
AngrySoundTech
2024-03-13 16:32:52 -04:00
parent 8bfb8aac63
commit 29ccf9d50d
4 changed files with 8 additions and 53 deletions

View File

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

View File

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

View File

@@ -2,31 +2,11 @@
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
@@ -40,21 +20,18 @@ 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=${CATEGORY_OVERRIDE:-${TAG%%/*}}
category=${TAG%%/*}
echo "category=${category}"
echo "category=${category}" >> $GITHUB_OUTPUT
version=${VERSION_OVERRIDE:-${TAG##*/}}
version=${TAG##*/}
echo "version=${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
project=${PROJECT_OVERRIDE:-${TAG#*/}}
project=${PROJECT_OVERRIDE:-${project%/*}}
project=${TAG#*/}
project=${project%/*}
echo "project=${project}"
echo "project=${project}" >> $GITHUB_OUTPUT

View File

@@ -3,31 +3,11 @@
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
@@ -43,16 +23,16 @@ jobs:
env:
TAG: ${{ github.ref_name }}
run: |
category=${CATEGORY_OVERRIDE:-${TAG%%/*}}
category=${TAG%%/*}
echo "category=${category}"
echo "category=${category}" >> $GITHUB_OUTPUT
version=${VERSION_OVERRIDE:-${TAG##*/}}
version=${TAG##*/}
echo "version=${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
project=${PROJECT_OVERRIDE:-${TAG#*/}}
project=${PROJECT_OVERRIDE:-${project%/*}}
project=${TAG#*/}
project=${project%/*}
echo "project=${project}"
echo "project=${project}" >> $GITHUB_OUTPUT