mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:49:16 +00:00
Fix scheduled docker build for the latest tagged commit (#1116)
* Try to fetch all history * more debug output * The final commit --------- Co-authored-by: Konstantin Koval
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -29,6 +29,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-tags: 'true'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare the Matrix
|
||||
id: prepare_matrix
|
||||
@@ -43,7 +44,7 @@ jobs:
|
||||
;;
|
||||
schedule)
|
||||
git fetch --all
|
||||
TAG=$(git describe --tags --abbrev=0 || exit 0)
|
||||
TAG=$(git describe --tags --abbrev=0 --always || exit 0)
|
||||
if [ -z "$TAG" ]; then
|
||||
echo 'tags=[{"tag": "${{ github.ref_name }}", "ref": "${{ github.ref }}"}]' >> $GITHUB_OUTPUT
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user