diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index c50829c..fbf18af 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -27,8 +27,8 @@ jobs: run: | apk add --no-cache bash jq - - name: Payload dekodieren - id: payload + - name: Daten zusammenstellen + id: daten run: | DECODED=$(echo "${{ github.event.inputs.payload }}" | base64 -d) @@ -42,7 +42,23 @@ jobs: echo "prerelease=$(echo "$DECODED" | jq -r '.prerelease')" 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: | - REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git" - echo "Klonen von $REPO_URL" \ No newline at end of file + git clone "$GIT_REPO_URL" repo + 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 }} +