diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 8415a9f..8a0fe5f 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -79,8 +79,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${GITEA_TOKEN} - ref: $BRANCH_NAME + token: ${{ secrets.BOT_TOKEN }} + ref: ${{ gitea.ref_name }} - name: Increment version number uses: stikkyapp/update-pubspec-version@v2 @@ -102,13 +102,16 @@ jobs: generate_licenses: runs-on: ubuntu-latest + env: + GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} + BRANCH_NAME: ${{ gitea.ref_name }} steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - token: $GITEA_TOKEN - ref: $BRANCH_NAME + token: ${{ secrets.BOT_TOKEN }} + ref: ${{ gitea.ref_name }} # Required for Flutter action - name: Install jq