Skip to content

Commit

Permalink
git github action python version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ep1cman committed Jan 18, 2025
1 parent ccb816d commit e3cbcc8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,24 @@

name: release & publish workflow

# Controls when the action will run.
on:
# Triggers the workflow on push events but only for the master branch
push:
tags:
- 'v*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "release"
release:
name: Create Release
runs-on: ubuntu-20.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Get Changelog Entry
Expand All @@ -39,7 +31,7 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: 3.10
python-version: "3.10"

- name: Install dependencies
run: |
Expand Down

0 comments on commit e3cbcc8

Please sign in to comment.