build test fix
All checks were successful
Build, Upload RootFS, and Push Docker Images / build-rootfs-archives (push) Successful in 6m53s
Build, Upload RootFS, and Push Docker Images / push-archives-to-repo (push) Successful in 58s
Build, Upload RootFS, and Push Docker Images / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images / generate-changelogs (push) Has been skipped
All checks were successful
Build, Upload RootFS, and Push Docker Images / build-rootfs-archives (push) Successful in 6m53s
Build, Upload RootFS, and Push Docker Images / push-archives-to-repo (push) Successful in 58s
Build, Upload RootFS, and Push Docker Images / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images / generate-changelogs (push) Has been skipped
This commit is contained in:
@@ -70,6 +70,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Commit and push archives if changed
|
- name: Commit and push archives if changed
|
||||||
|
id: commit_archives
|
||||||
run: |
|
run: |
|
||||||
cd upload-repo
|
cd upload-repo
|
||||||
git config --global user.name "${{ env.GIT_USERNAME }}"
|
git config --global user.name "${{ env.GIT_USERNAME }}"
|
||||||
@@ -79,12 +80,15 @@ jobs:
|
|||||||
git add **/*.tar.bz2
|
git add **/*.tar.bz2
|
||||||
git commit -m "Update base images on $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
git commit -m "Update base images on $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||||
git push
|
git push
|
||||||
|
echo "archives_changed=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "[INFO] No changes to commit."
|
echo "[INFO] No changes to commit."
|
||||||
|
echo "archives_changed=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-and-push-docker-images:
|
build-and-push-docker-images:
|
||||||
needs: push-archives-to-repo
|
needs: push-archives-to-repo
|
||||||
|
if: needs.push-archives-to-repo.outputs.archives_changed == 'true'
|
||||||
runs-on: docker-build
|
runs-on: docker-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user