mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
update auto_release workflow
This commit is contained in:
parent
2b04124c61
commit
9f94873edf
7
.github/workflows/auto_release.yml
vendored
7
.github/workflows/auto_release.yml
vendored
|
@ -31,7 +31,12 @@ jobs:
|
||||||
id: dir_version
|
id: dir_version
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||||
FOLDER_CHANGED=${{ github.event.inputs.folder }}
|
if [ "${{ github.event.inputs.folder }}" == "${{ matrix.folder }}" ]; then
|
||||||
|
FOLDER_CHANGED=${{ github.event.inputs.folder }}
|
||||||
|
else
|
||||||
|
echo "Manually triggered for folder ${ { github.event.inputs.folder } }, but current job is for folder ${ { matrix.folder } }. Skipping."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
CHANGED_FOLDERS=$(git diff --name-only HEAD^ HEAD | cut -d '/' -f1 | uniq)
|
CHANGED_FOLDERS=$(git diff --name-only HEAD^ HEAD | cut -d '/' -f1 | uniq)
|
||||||
[[ "$CHANGED_FOLDERS" =~ "${{ matrix.folder }}" ]] && FOLDER_CHANGED="${{ matrix.folder }}" || FOLDER_CHANGED=""
|
[[ "$CHANGED_FOLDERS" =~ "${{ matrix.folder }}" ]] && FOLDER_CHANGED="${{ matrix.folder }}" || FOLDER_CHANGED=""
|
||||||
|
|
Loading…
Reference in a new issue