update auto_release workflow

This commit is contained in:
Gerrit Gogel 2023-08-27 14:49:52 +02:00
parent e56a33f436
commit cb09e5aee3

View file

@ -45,6 +45,7 @@ jobs:
[[ "$CHANGED_FOLDERS" =~ "${{ matrix.folder }}" ]] && FOLDER_CHANGED="${{ matrix.folder }}" || FOLDER_CHANGED="" [[ "$CHANGED_FOLDERS" =~ "${{ matrix.folder }}" ]] && FOLDER_CHANGED="${{ matrix.folder }}" || FOLDER_CHANGED=""
if [ -z "$FOLDER_CHANGED" ]; then if [ -z "$FOLDER_CHANGED" ]; then
echo "PROCEED=false" >> $GITHUB_ENV
exit 0 exit 0
fi fi
echo "FOLDER_CHANGED=$FOLDER_CHANGED" >> $GITHUB_ENV echo "FOLDER_CHANGED=$FOLDER_CHANGED" >> $GITHUB_ENV
@ -58,6 +59,7 @@ jobs:
fi fi
- name: Get Commit Messages - name: Get Commit Messages
if: env.PROCEED != 'false'
id: get_messages id: get_messages
run: | run: |
MESSAGES="" MESSAGES=""
@ -69,6 +71,7 @@ jobs:
done done
if [ -z "$MESSAGES" ]; then if [ -z "$MESSAGES" ]; then
echo "PROCEED=false" >> $GITHUB_ENV
exit 0 exit 0
fi fi
@ -81,6 +84,7 @@ jobs:
echo "MESSAGES=$MESSAGES" >> $GITHUB_ENV echo "MESSAGES=$MESSAGES" >> $GITHUB_ENV
- name: Create Release - name: Create Release
if: env.PROCEED != 'false'
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}