forked from AG_QGIS/Plugin_Test_Action
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6715ce896c |
@@ -34,16 +34,7 @@ jobs:
|
|||||||
git clone "$REPO_URL" repo
|
git clone "$REPO_URL" repo
|
||||||
cd repo
|
cd repo
|
||||||
|
|
||||||
# Branch finden, der den Tag enthält
|
git checkout "$TAG"
|
||||||
BRANCH=$(git branch -r --contains "$TAG" | head -n 1 | sed 's/origin\///')
|
|
||||||
|
|
||||||
if [ -z "$BRANCH" ]; then
|
|
||||||
echo "Kein Branch enthält diesen Tag – checkout des Tags direkt"
|
|
||||||
git checkout "$TAG"
|
|
||||||
else
|
|
||||||
echo "Branch gefunden: $BRANCH – checkout"
|
|
||||||
git checkout "$BRANCH"
|
|
||||||
fi
|
|
||||||
env:
|
env:
|
||||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user