diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ce9812..a936865 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,9 @@ jobs: id-token: write steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Flutter uses: subosito/flutter-action@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca5ed16..283cfd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,9 +7,11 @@ on: jobs: release: if: | + github.ref_type == 'branch' && github.ref == 'refs/heads/main' && !contains(github.actor, 'bot') && - !contains(github.event.head_commit.message, '[skip ci]') + !contains(github.event.head_commit.message, '[skip ci]') && + !contains(github.event.head_commit.message, 'chore:') runs-on: ubuntu-latest name: Create Release Tag