Correction problème 404 en prod
This commit is contained in:
@@ -21,17 +21,20 @@ jobs:
|
||||
- name: Install curl
|
||||
run: apk add --no-cache curl
|
||||
|
||||
- name: Create PR release → develop
|
||||
- name: Create PR main → develop
|
||||
run: |
|
||||
RELEASE_BRANCH="${{ github.event.pull_request.head.ref }}"
|
||||
|
||||
curl --fail-with-body -X POST \
|
||||
|
||||
STATUS=$(curl -s -o /tmp/pr_response.json -w "%{http_code}" -X POST \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"title\": \"chore: sync ${RELEASE_BRANCH} into develop\",
|
||||
\"head\": \"${RELEASE_BRANCH}\",
|
||||
\"head\": \"main\",
|
||||
\"base\": \"develop\",
|
||||
\"body\": \"Synchronisation automatique après merge de ${RELEASE_BRANCH} dans main.\"
|
||||
}" \
|
||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/pulls"
|
||||
"https://git.goutailler-olivier.com/api/v1/repos/${{ gitea.repository }}/pulls")
|
||||
echo "POST /pulls → HTTP $STATUS"
|
||||
cat /tmp/pr_response.json
|
||||
[ "$STATUS" = "201" ] || exit 1
|
||||
@@ -1,5 +1,7 @@
|
||||
server:
|
||||
port: 8080
|
||||
servlet:
|
||||
context-path: /api
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
||||
Reference in New Issue
Block a user