Skip to content

Commit

Permalink
change branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Oct 2, 2024
1 parent a24d728 commit 8a3f51c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/update_citation.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Update CITATION.cff version and create a new PR

permissions:
contents: write
pull-requests: write

on:
workflow_dispatch:
inputs:
tag:
description: 'New version tag (e.g., v0.4.3)'
required: true
prerelease:
description: 'Should this release be a prerelease?'
required: true
default: false # No quotes, set as boolean

env:
UV_SYSTEM_PYTHON: true
Expand All @@ -29,11 +29,10 @@ jobs:
python-version: "3.11"

- name: Check if branch is main
if: github.ref != 'refs/heads/main'
run: |
if [ "${GITHUB_REF##*/}" != "main" ]; then
echo "This workflow can only be run from the main branch."
exit 1
fi
echo "This workflow can only be run from the main branch."
exit 1
- name: Get the latest release version from GitHub
run: |
Expand Down

0 comments on commit 8a3f51c

Please sign in to comment.