Wenn das jetzt funktioniert geh ich crashout
This commit is contained in:
@@ -89,6 +89,8 @@ jobs:
|
||||
|
||||
- name: Format code
|
||||
if: steps.check_format.outcome == 'failure'
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||
run: |
|
||||
git fetch origin ${{ gitea.head_ref }}
|
||||
git checkout ${{ gitea.head_ref }}
|
||||
@@ -98,10 +100,10 @@ jobs:
|
||||
|
||||
if [ -n "$(git status --porcelain lib test)" ]; then
|
||||
git config --global user.name "Gitea Actions [bot]"
|
||||
git config --global user.email "actions@gitea.com"
|
||||
git config --global user.email ""
|
||||
git add lib test
|
||||
git commit -m "Auto-format code"
|
||||
git push
|
||||
git push origin HEAD:${{ gitea.head_ref }}
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
@@ -125,13 +127,13 @@ jobs:
|
||||
strategy: 'patch'
|
||||
path: './pubspec.yaml'
|
||||
|
||||
|
||||
|
||||
- name: Commit version update
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||
run: |
|
||||
git config --global user.name "Felix Kirchner"
|
||||
git config --global user.email "felix.kirchner.fk@gmail.com"
|
||||
git config --global user.name "Gitea Actions [bot]"
|
||||
git config --global user.email ""
|
||||
git add pubspec.yaml
|
||||
git commit -m "Updated version number"
|
||||
git push https://flixcoo:${{ secrets.BOT_TOKEN }}@git.yannick-weigert.de/liquid-development/game-tracker.git HEAD:${{ gitea.head_ref }}
|
||||
git push origin HEAD:${{ gitea.head_ref }}
|
||||
Reference in New Issue
Block a user