From 9a307ceed5741d1b51209500a2cacaa3b28dce97 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Fri, 23 Jan 2026 13:54:20 +0100 Subject: [PATCH] Updated order --- .gitea/workflows/push.yaml | 63 +++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 9788ce3..bcf1865 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -59,9 +59,39 @@ jobs: echo "No changes to commit" fi - format: + + update_version: runs-on: ubuntu-latest needs: generate_licenses + if: gitea.ref == 'refs/heads/development' + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.BOT_TOKEN }} + ref: ${{ gitea.ref_name }} + + - name: Increment version number + uses: https://github.com/stikkyapp/update-pubspec-version@v2 + with: + strategy: 'patch' + path: './pubspec.yaml' + + + - name: Commit version update + env: + GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} + run: | + git config --global user.name "Gitea Actions [bot]" + git config --global user.email "actions@yannick-weigert.de" + git add pubspec.yaml + git commit -m "Updated version number [skip ci]" + git push origin HEAD:${{ gitea.ref_name }} + + format: + runs-on: ubuntu-latest + needs: update_version steps: - name: Checkout code uses: actions/checkout@v4 @@ -103,33 +133,4 @@ jobs: fi - name: Verify format - run: flutter analyze lib test - - update_version: - runs-on: ubuntu-latest - needs: [format, generate_licenses] - if: gitea.ref == 'refs/heads/development' - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.BOT_TOKEN }} - ref: ${{ gitea.ref_name }} - - - name: Increment version number - uses: https://github.com/stikkyapp/update-pubspec-version@v2 - with: - strategy: 'patch' - path: './pubspec.yaml' - - - - name: Commit version update - env: - GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} - run: | - git config --global user.name "Gitea Actions [bot]" - git config --global user.email "actions@yannick-weigert.de" - git add pubspec.yaml - git commit -m "Updated version number [skip ci]" - git push origin HEAD:${{ gitea.ref_name }} \ No newline at end of file + run: flutter analyze lib test \ No newline at end of file