Skip to content

Commit

Permalink
HEAD~
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Jul 10, 2024
1 parent 5723564 commit c719c87
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,30 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: setup upterm session
uses: lhotari/action-upterm@v1
# - name: setup upterm session
# uses: lhotari/action-upterm@v1

- name: check for changes in helm-chart directory
id: check_changes
run: |
# fetch all
git fetch --all
# get the base commit (before the merge)
BASE_COMMIT=$(git merge-base HEAD origin/main)
# get the list of files changed in the pull request
CHANGED_FILES=$(git diff --name-only $BASE_COMMIT HEAD)
# get the list of files changed in the pull request compared to the last commit
CHANGED_FILES=$(git diff --name-only HEAD~)
# check if any files in the helm-chart/ directory have changed
if echo "$CHANGED_FILES" | grep -q "^helm-chart/"; then
echo "Changes detected in the helm-chart/ directory."
echo "$CHANGED_FILES" | grep -q "^helm-chart/";
if [ $? -eq 0 ]; then
echo
"Changes detected in the helm-chart/ directory."
echo "continue=true" >> $GITHUB_OUTPUT
else
echo "No changes detected in the helm-chart/ directory. Exiting."
echo "continue=false" >> $GITHUB_OUTPUT
exit 0
fi
- name: determine version increment
if: steps.check_label.outputs.continue == 'true' && steps.check_changes.outputs.continue == 'true'
id: determine-version
Expand Down

0 comments on commit c719c87

Please sign in to comment.