Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoigt-sag authored Feb 16, 2024
1 parent 89c54b9 commit f8f6288
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,10 @@ jobs:
- name: Decide Build Number
id: decide_build_number
run: |
VERSION=$(grep -oP "archiveVersion = '[^']+" build-jar.gradle | sed "s/archiveVersion = '//")
VERSION=$(awk -F "'" '/archiveVersion =/{print $2}' build-jar.gradle)
echo "Found version: $VERSION"
echo "marketing_build_version=$VERSION" >> $GITHUB_OUTPUT
- name: Get Branch Name (Manual Build)
if: github.event_name != 'pull_request'
shell: bash
run: |
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" > branchBuild.properties
- name: Get Branch Name (Pull Request)
if: github.event_name == 'pull_request'
shell: bash
run: |
echo "branch=$(echo ${GITHUB_HEAD_REF})" > branchBuild.properties
- name: Invoke Gradle for aar
run: |
chmod +x gradlew
Expand Down

0 comments on commit f8f6288

Please sign in to comment.