Correction problème 404 en prod
This commit is contained in:
@@ -21,17 +21,20 @@ jobs:
|
|||||||
- name: Install curl
|
- name: Install curl
|
||||||
run: apk add --no-cache curl
|
run: apk add --no-cache curl
|
||||||
|
|
||||||
- name: Create PR release → develop
|
- name: Create PR main → develop
|
||||||
run: |
|
run: |
|
||||||
RELEASE_BRANCH="${{ github.event.pull_request.head.ref }}"
|
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 "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-d "{
|
||||||
\"title\": \"chore: sync ${RELEASE_BRANCH} into develop\",
|
\"title\": \"chore: sync ${RELEASE_BRANCH} into develop\",
|
||||||
\"head\": \"${RELEASE_BRANCH}\",
|
\"head\": \"main\",
|
||||||
\"base\": \"develop\",
|
\"base\": \"develop\",
|
||||||
\"body\": \"Synchronisation automatique après merge de ${RELEASE_BRANCH} dans main.\"
|
\"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:
|
server:
|
||||||
port: 8080
|
port: 8080
|
||||||
|
servlet:
|
||||||
|
context-path: /api
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
|
|||||||
Reference in New Issue
Block a user