Skip to content

Commit f8c6f21

Browse files
committed
simplify
1 parent 46e43c2 commit f8c6f21

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/draft-release.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414
outputs:
1515
conan_version: ${{ steps.vars.outputs.conan_version }}
16-
is_release_branch: ${{ steps.vars.outputs.is_release_branch }}
1716

1817
steps:
1918
- name: Checkout code
2019
uses: actions/checkout@v4
2120

22-
- name: Extract version and determine branch type
21+
- name: Extract version
2322
id: vars
2423
run: |
2524
# Extract version from __init__.py
2625
VERSION=$(awk -F"'" '/__version__ =/ {print $2}' conan/__init__.py)
2726
echo "conan_version=$VERSION" >> $GITHUB_OUTPUT
28-
29-
# Check if it is a release branch and set an output
30-
IS_RELEASE_BRANCH="false"
31-
if [[ "${{ github.ref_name }}" == release/2.* ]]; then
32-
IS_RELEASE_BRANCH="true"
33-
fi
34-
echo "is_release_branch=$IS_RELEASE_BRANCH" >> $GITHUB_OUTPUT
35-
3627
echo "Version found: $VERSION"
37-
echo "Is release branch: $IS_RELEASE_BRANCH"
3828
3929
package:
4030
name: Package for ${{ matrix.platform }}/${{ matrix.arch }}
@@ -98,7 +88,7 @@ jobs:
9888
# needs: [prepare, package]
9989
# runs-on: ubuntu-latest
10090
# # This job only runs for branches like 'release/2.X'
101-
# if: needs.prepare.outputs.is_release_branch == 'true'
91+
# if: startsWith(github.ref_name, 'release/2.')
10292
# steps:
10393
# - name: Generate Write-Access App Token
10494
# id: generate_token

0 commit comments

Comments
 (0)