init
This commit is contained in:
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name "gitea-actions"
|
git config user.name "gitea-actions"
|
||||||
git config user.email "actions@gitea.local"
|
git config user.email "actions@gitea.local"
|
||||||
git remote set-url origin "https://Domipoke:${{ secrets.GITEA_PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git"
|
git remote set-url origin "https://Domipoke:${{ secrets.PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git"
|
||||||
|
|
||||||
BRANCH="${GITHUB_REF#refs/heads/}"
|
BRANCH="${GITHUB_REF#refs/heads/}"
|
||||||
echo "Pushing to branch: $BRANCH"
|
echo "Pushing to branch: $BRANCH"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name "gitea-actions"
|
git config user.name "gitea-actions"
|
||||||
git config user.email "actions@gitea.local"
|
git config user.email "actions@gitea.local"
|
||||||
git remote set-url origin "https://Domipoke:${{ secrets.GITEA_PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git"
|
git remote set-url origin "https://Domipoke:${{ secrets.PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git"
|
||||||
|
|
||||||
BRANCH="${GITHUB_REF#refs/heads/}"
|
BRANCH="${GITHUB_REF#refs/heads/}"
|
||||||
echo "Pushing to branch: $BRANCH"
|
echo "Pushing to branch: $BRANCH"
|
||||||
@@ -57,4 +57,4 @@ jobs:
|
|||||||
# Ignore the .texcache folder so it doesn't get committed
|
# Ignore the .texcache folder so it doesn't get committed
|
||||||
git add pdf/*.pdf
|
git add pdf/*.pdf
|
||||||
git diff --cached --quiet || git commit -m "CI: rebuild all PDFs [skip ci]"
|
git diff --cached --quiet || git commit -m "CI: rebuild all PDFs [skip ci]"
|
||||||
git push origin HEAD:refs/heads/"$BRANCH"
|
git push origin HEAD:refs/heads/"$BRANCH"
|
||||||
|
|||||||
Reference in New Issue
Block a user