mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 16:20:04 +00:00
Update trigger for workflow
This commit is contained in:
@@ -1,22 +1,19 @@
|
|||||||
name: Delete Docker Tag on Merge
|
name: Delete Docker Tag on Merge
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
types:
|
||||||
- main
|
- closed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
delete-docker-tag:
|
delete-docker-tag:
|
||||||
if: |
|
if: startsWith(github.event.pull_request.head.ref, 'fix/')
|
||||||
contains(github.event.head_commit.message, 'Merge pull request') &&
|
|
||||||
startsWith(github.event.head_commit.message, 'Merge pull request')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Extract merged branch name
|
- name: Extract merged branch name
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
run: |
|
run: |
|
||||||
# Extract branch name from merge commit message
|
BRANCH="${{ github.event.pull_request.head.ref }}"
|
||||||
BRANCH=$(echo "${{ github.event.head_commit.message }}" | grep -oE 'fix/[^ ]+')
|
|
||||||
TAG=${BRANCH#fix/}
|
TAG=${BRANCH#fix/}
|
||||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user