Update .gitea/workflows/deployProduction.yml #41
@@ -20,20 +20,20 @@ jobs:
|
||||
steps:
|
||||
- name: Create fork
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Authorization: token ${GIT_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
https://gitea.psi.ch/api/v1/repos/pombas_n/WebHosting_DMZ/forks \
|
||||
-d '{}'
|
||||
|
||||
- name: Clone fork
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
git clone \
|
||||
https://oauth2:${GITEA_TOKEN}@gitea.psi.ch/${{ github.repository_owner }}/WebHosting_DMZ.git
|
||||
https://oauth2:${GIT_TOKEN}@gitea.psi.ch/${{ github.repository_owner }}/WebHosting_DMZ.git
|
||||
|
||||
cd WebHosting_DMZ
|
||||
git pull --force
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
|
||||
- name: Commit and push
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
cd WebHosting_DMZ
|
||||
BRANCH="update-versions-${{ github.run_number }}"
|
||||
@@ -95,10 +95,10 @@ jobs:
|
||||
|
||||
- name: Create Pull Request
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Authorization: token ${GIT_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
https://gitea.psi.ch/api/v1/repos/pombas_n/WebHosting_DMZ/pulls \
|
||||
-d '{
|
||||
|
||||
Reference in New Issue
Block a user