Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenko-kovac authored Oct 17, 2023
1 parent 0344d46 commit 4f78ccd
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,7 @@ jobs:
- name: Determine target release
id: get_target_release
run: |
# create_release=true
# if ${{ github.event_name == 'schedule' }}; then
# commits_count=$(git rev-list --count --no-merges ${{ steps.get_current_release.outputs.tag }}..HEAD --before=1.hour)
# if [ $commits_count -eq 0 ]; then
# create_release=false
# echo "There are no commits since latest release, nothing to do."
# fi
# version_bump=patch
# else
version_bump=${{ inputs.version-bump }}
# fi
echo "Create release: $create_release"
echo "create_release=$create_release" >> $GITHUB_OUTPUT
# if [ "$create_release" != true ]; then
# exit 0
# fi
version_bump=${{ inputs.version-bump }}
desired_version=${{ inputs.desired-version }}
current_version=${{ steps.get_current_release.outputs.version }}
Expand Down Expand Up @@ -128,14 +109,12 @@ jobs:
- name: Determine target commit
id: get_target_commit
# if: steps.get_target_release.outputs.create_release == 'true'
run: |
sha=$(git rev-parse HEAD)
echo "Target commit: $sha"
echo "sha=$sha" >> $GITHUB_OUTPUT
- name: Wait for check suites to complete
# if: steps.get_target_release.outputs.create_release == 'true'
uses: sap-contributions/await-check-suites@master
with:
ref: ${{ steps.get_target_commit.outputs.sha }}
Expand All @@ -145,7 +124,6 @@ jobs:
appSlugFilter: github-actions

- name: Create Release
# if: steps.get_target_release.outputs.create_release == 'true'
env:
GH_TOKEN: ${{ secrets.WORKFLOW_USER_GH_TOKEN }}
run: |
Expand Down

0 comments on commit 4f78ccd

Please sign in to comment.