forked from AG_QGIS/Plugin_Test_Action
Compare commits
6 Commits
v5
...
v13-testin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e3325df16 | ||
|
|
6715ce896c | ||
|
|
0ad9d3e1e5 | ||
|
|
46672dbf2b | ||
|
|
739af302d3 | ||
|
|
c11afa9383 |
@@ -20,24 +20,49 @@ jobs:
|
|||||||
apk add --no-cache git zip curl jq rsync bash
|
apk add --no-cache git zip curl jq rsync bash
|
||||||
git config --global http.sslVerify false
|
git config --global http.sslVerify false
|
||||||
|
|
||||||
- name: Repository auschecken
|
- name: Code holen
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
with:
|
# Tag aus GitHub Actions Kontext extrahieren
|
||||||
repository: https://entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Plugin_Test_Action.git
|
TAG="${GITHUB_REF#refs/tags/}"
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
echo "DEBUG | Tag erkannt: $TAG"
|
||||||
|
|
||||||
|
# Repo-URL dynamisch aus vars und github.repository bauen
|
||||||
|
REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
|
||||||
|
echo "DEBUG | Klone von: $REPO_URL"
|
||||||
|
|
||||||
|
# Repository klonen
|
||||||
|
git clone "$REPO_URL" repo
|
||||||
|
cd repo
|
||||||
|
|
||||||
|
git checkout "$TAG"
|
||||||
|
env:
|
||||||
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
|
||||||
|
- name: Version und Kanal bestimmen
|
||||||
|
id: info
|
||||||
|
run: |
|
||||||
|
TAG="${{ github.ref_name }}"
|
||||||
|
VERSION="${TAG#v}"
|
||||||
|
|
||||||
|
case "$TAG" in
|
||||||
|
*-dev*) CHANNEL="unstable" ;;
|
||||||
|
*-beta*) CHANNEL="testing" ;;
|
||||||
|
*) CHANNEL="stable" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
echo "channel=${CHANNEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
echo "DEBUG | Version: $VERSION"
|
||||||
|
echo "DEBUG | Kanal: $CHANNEL"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Debug Info
|
- name: Debug Info
|
||||||
run: |
|
run: |
|
||||||
echo "Tag: $GITEA_REF_NAME"
|
echo "Tag: $GITEA_REF_NAME"
|
||||||
uname -a
|
uname -a
|
||||||
|
|
||||||
# - name: Checkout
|
|
||||||
# run: |
|
|
||||||
# git clone --depth 1 \
|
|
||||||
# --branch ${{ github.ref_name }} \
|
|
||||||
# https://x-access-token:${{ secrets.RELEASE_TOKEN }}@${{ vars.RELEASE_URL }}/${{ github.repository }}.git \
|
|
||||||
# .
|
|
||||||
|
|
||||||
# - name: Determine version and channel
|
# - name: Determine version and channel
|
||||||
# id: info
|
# id: info
|
||||||
# run: |
|
# run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user