diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 550f81c..6dec039 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -10,25 +10,14 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install jq + - name: Install Flutter (wget) run: | - apt-get update - apt-get install -y jq - - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - channel: stable - flutter-version: 3.38.6 - - # - name: Install Flutter (wget) - # run: | - # wget --progress=dot:giga https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz - # tar xf flutter_linux_3.38.2-stable.tar.xz - # # Set Git safe directory for Flutter path - # git config --global --add safe.directory "$(pwd)/flutter" - # # Set Flutter path - # echo "$(pwd)/flutter/bin" >> $GITEA_PATH + wget -q --show-progress https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz + tar xf flutter_linux_3.38.2-stable.tar.xz + # Set Git safe directory for Flutter path + git config --global --add safe.directory "$(pwd)/flutter" + # Set Flutter path + echo "$(pwd)/flutter/bin" >> $GITEA_PATH - name: Get dependencies run: flutter pub get @@ -49,12 +38,12 @@ jobs: - name: Install Flutter (wget) run: | - wget --progress=dot:giga https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz + wget -q --show-progress https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz tar xf flutter_linux_3.38.2-stable.tar.xz # Set Git safe directory for Flutter path git config --global --add safe.directory "$(pwd)/flutter" # Set Flutter path - echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + echo "$(pwd)/flutter/bin" >> $GITEA_PATH - name: Get dependencies run: flutter pub get diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 9d40108..2d46966 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -25,7 +25,7 @@ jobs: # Set Git safe directory for Flutter path git config --global --add safe.directory "$(pwd)/flutter" # Set Flutter path - echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + echo "$(pwd)/flutter/bin" >> $GITEA_PATH - name: Get dependencies run: flutter pub get @@ -51,7 +51,7 @@ jobs: # Set Git safe directory for Flutter path git config --global --add safe.directory "$(pwd)/flutter" # Set Flutter path - echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + echo "$(pwd)/flutter/bin" >> $GITEA_PATH - name: Get dependencies run: flutter pub get @@ -88,7 +88,7 @@ jobs: Update-Version: runs-on: ubuntu-latest needs: Format - if: github.ref == 'refs/heads/development' + if: gitea.ref == 'refs/heads/development' steps: - name: Checkout code uses: actions/checkout@v4