diff --git a/.github/workflows/aquamai.yaml b/.github/workflows/aquamai.yaml index 489f6eca..4ef2d57d 100644 --- a/.github/workflows/aquamai.yaml +++ b/.github/workflows/aquamai.yaml @@ -1,4 +1,4 @@ -name: Build AquaMai +name: AquaMai Build on: workflow_dispatch: @@ -7,11 +7,21 @@ on: - AquaMai/** branches: - v1-dev + pull_request_target: + paths: + - AquaMai/** + branches: + - v1-dev jobs: build: runs-on: windows-latest steps: + - name: Fix Git line encoding bug + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - uses: actions/checkout@v4 - name: Checkout Assets @@ -31,13 +41,6 @@ jobs: cd AquaMai dotnet build -c Release /p:DefineConstants="CI" - - name: Make example config - shell: cmd - run: | - cd AquaMai\Output - dotnet tool install -g dotnet-script - dotnet script genConfig.csx - - name: Prepare artifact shell: cmd run: | @@ -52,7 +55,7 @@ jobs: path: AquaMai\Output\Upload - name: Send to Telegram - if: github.event_name != 'pull_request' + if: github.ref_name == 'v1-dev' run: | $Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMediaGroup" $Form = @{