Update .gitea/workflows/deployProduction.yml #46
@@ -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"
|
||||
}'
|
||||
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\"
|
||||
}"
|
||||
Reference in New Issue
Block a user