mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-01 01:49:40 +00:00
branch name use and extraction fixes, limit validation to main branch
This commit is contained in:
7
.github/workflows/github-release.yml
vendored
7
.github/workflows/github-release.yml
vendored
@@ -12,6 +12,9 @@ on:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
CURRENT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
|
||||
jobs:
|
||||
create-github-release:
|
||||
name: Create GitHub Release
|
||||
@@ -24,12 +27,12 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.workflow_run.head_branch }}
|
||||
ref: $CURRENT_BRANCH_NAME
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Extract version from branch
|
||||
id: extract
|
||||
run: .github/scripts/extract_version.sh "${{ github.event.workflow_run.head_branch }}"
|
||||
run: .github/scripts/extract_version.sh "$CURRENT_BRANCH_NAME"
|
||||
|
||||
- name: Validate version format
|
||||
id: validate
|
||||
|
||||
Reference in New Issue
Block a user