Merge pull request 'Release/0.1.9' (#10) from release/0.1.9 into main
Reviewed-on: Bonsai/Bonsai-webapp#10
This commit is contained in:
@@ -21,11 +21,19 @@ jobs:
|
|||||||
- name: Install curl
|
- name: Install curl
|
||||||
run: apk add --no-cache curl
|
run: apk add --no-cache curl
|
||||||
|
|
||||||
|
- name: Check API token access
|
||||||
|
run: |
|
||||||
|
STATUS=$(curl -s -o /tmp/api_response.json -w "%{http_code}" \
|
||||||
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
|
"https://git.goutailler-olivier.com/api/v1/repos/${{ gitea.repository }}")
|
||||||
|
echo "GET /repos/${{ gitea.repository }} → HTTP $STATUS"
|
||||||
|
cat /tmp/api_response.json
|
||||||
|
|
||||||
- name: Create PR release → develop
|
- name: Create PR release → 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 "{
|
||||||
@@ -34,4 +42,7 @@ jobs:
|
|||||||
\"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.\"
|
||||||
}" \
|
}" \
|
||||||
"https://git.goutailler-olivier.com/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
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bonsai-webapp",
|
"name": "bonsai-webapp",
|
||||||
"version": "0.1.5",
|
"version": "0.1.9",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
|
|||||||
Reference in New Issue
Block a user