diff --git a/.gitea/workflows/deployProduction.yml b/.gitea/workflows/deployProduction.yml index 6d45221..148a626 100644 --- a/.gitea/workflows/deployProduction.yml +++ b/.gitea/workflows/deployProduction.yml @@ -95,15 +95,30 @@ jobs: - name: Create Pull Request env: - GIT_TOKEN: ${{ secrets.GIT_TOKEN }} + GIT_TOKEN: ${{ secrets.GIT_TOKEN }} run: | - curl -X POST \ - -H "Authorization: token ${GIT_TOKEN}" \ - -H "Content-Type: application/json" \ - https://gitea.psi.ch/api/v1/repos/linux/WebHosting_DMZ/pulls \ - -d '{ - "title": "Update psitrail and pocketapp versions", - "body": "Automated version update.", - "head": "${{ github.repository_owner }}:update-versions-${{ github.run_number }}", - "base": "main" - }' \ No newline at end of file + DESCRIPTION="Automated version update." + + if [ -n "$POCKETAPP_VERSION" ]; then + DESCRIPTION+=" PocketApp: $POCKETAPP_VERSION" + fi + + if [ -n "$PSITRAIL_VERSION" ]; then + DESCRIPTION+=" PsiTrail: $PSITRAIL_VERSION" + fi + + # Add new versions here: + # if [ -n "$MYAPP_VERSION" ]; then + # DESCRIPTION+=" MyApp: $MYAPP_VERSION" + # fi + + curl -X POST \ + -H "Authorization: token ${GIT_TOKEN}" \ + -H "Content-Type: application/json" \ + https://gitea.psi.ch/api/v1/repos/linux/WebHosting_DMZ/pulls \ + -d "{ + \"title\": \"Update versions\", + \"body\": \"$DESCRIPTION\", + \"head\": \"${{ github.repository_owner }}:update-versions-${{ github.run_number }}\", + \"base\": \"main\" + }" \ No newline at end of file