gitea actions ng6
This commit is contained in:
@@ -27,8 +27,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apk add --no-cache bash jq
|
apk add --no-cache bash jq
|
||||||
|
|
||||||
- name: Payload dekodieren
|
- name: Daten zusammenstellen
|
||||||
id: payload
|
id: daten
|
||||||
run: |
|
run: |
|
||||||
DECODED=$(echo "${{ github.event.inputs.payload }}" | base64 -d)
|
DECODED=$(echo "${{ github.event.inputs.payload }}" | base64 -d)
|
||||||
|
|
||||||
@@ -42,7 +42,23 @@ jobs:
|
|||||||
echo "prerelease=$(echo "$DECODED" | jq -r '.prerelease')"
|
echo "prerelease=$(echo "$DECODED" | jq -r '.prerelease')"
|
||||||
echo "zip_folder=$(echo "$DECODED" | jq -r '.zip_folder')"
|
echo "zip_folder=$(echo "$DECODED" | jq -r '.zip_folder')"
|
||||||
|
|
||||||
- name: Repository klonen
|
GIT_REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
|
||||||
|
echo "git_repo_url=$GIT_REPO_URL" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
PAYLOAD_REPO=$(echo "$DECODED" | jq -r '.git_url')
|
||||||
|
GIT_PLUGIN_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/$PAYLOAD_REPO.git"
|
||||||
|
echo "git_plugin_url=$GIT_PLUGIN_URL" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Repositorys klonen
|
||||||
run: |
|
run: |
|
||||||
REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
|
git clone "$GIT_REPO_URL" repo
|
||||||
echo "Klonen von $REPO_URL"
|
git clone "$GIT_PLUGIN_URL" plugin
|
||||||
|
|
||||||
|
ls -la
|
||||||
|
ls -la repo
|
||||||
|
ls -la plugin
|
||||||
|
env:
|
||||||
|
GIT_REPO_URL: ${{ steps.daten.outputs.git_repo_url }}
|
||||||
|
GIT_PLUGIN_URL: ${{ steps.daten.outputs.git_plugin_url }}
|
||||||
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user