Skip to content

Commit

Permalink
Merge pull request #298 from codecov/fix/pipy-release
Browse files Browse the repository at this point in the history
Fix release version
  • Loading branch information
trent-codecov authored Oct 11, 2023
2 parents 75d6197 + 6c3601d commit d62c58d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@ on:

jobs:
create-release:
name: Tag Release ${{ github.head_ref }}
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected]
secrets: inherit
env:
GITHUB_TOKEN: ${{ secrets.CODECOV_RELEASE_PAT }}
name: Create Github Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- id: get-release-vars
name: Configure Release Vars
run: |
grep -E "version='(\d\.\d\.\d)'" setup.py | grep -Eo "\d.\d.\d" >> "$GITHUB_OUTPUT"
- name: Create GH Release
uses: softprops/[email protected]
with:
name: Release ${{ steps.get-release-vars.outputs.release_version }}
tag_name: ${{ inputs.tag_to_prepend }}${{ steps.get-release-vars.outputs.release_version }}
generate_release_notes: true
body: Autogenerated for ${{ steps.get-release-vars.outputs.release_version }}. Created for ${{ github.event.pull_request.html_url }}

release:
needs: [create-release]
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
uses: ./.github/workflows/release_flow.yml
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
secrets: inherit
1 change: 0 additions & 1 deletion .github/workflows/release_flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
name: Build and Publish CLI Release

on:
workflow_call:
release:
types:
- created
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="codecov-cli",
version="0.3.8",
version="0.3.7",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
description="Codecov Command Line Interface",
long_description=long_description,
Expand Down

0 comments on commit d62c58d

Please sign in to comment.