Skip to content

Commit

Permalink
Support release for another branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Dec 17, 2024
1 parent ab97959 commit ad46c3d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Bump version and dockerize
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: Version for publishing
required: true

jobs:
deploy:
Expand All @@ -16,16 +11,13 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: main
ref: ${{ github.event.release.target_commitish }}
- name: Get version
id: version
uses: actions/github-script@v7
with:
result-encoding: string
script: |
if (context.payload.inputs && context.payload.inputs.version) {
return context.payload.inputs.version
}
return context.ref.split('/').pop()
- name: Set up Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit ad46c3d

Please sign in to comment.