diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 63a3553..20319e2 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -52,8 +52,8 @@ jobs: env: GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} run: | - git fetch origin ${{ gitea.head_ref }} - git checkout ${{ gitea.head_ref }} + git fetch origin ${{ gitea.ref_name }} + git checkout ${{ gitea.ref_name }} dart fix --apply lib dart fix --apply test @@ -73,7 +73,7 @@ jobs: update_version: runs-on: ubuntu-latest - needs: Format + needs: format if: gitea.ref == 'refs/heads/development' steps: - name: Checkout code @@ -81,7 +81,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.BOT_TOKEN }} - ref: ${{ gitea.head_ref }} + ref: ${{ gitea.ref_name }} - name: Increment version number uses: https://github.com/stikkyapp/update-pubspec-version@v2