diff --git a/.github/workflows/run_qaqc.yaml b/.github/workflows/run_qaqc.yaml index 92ca4d4..1bb6e0e 100644 --- a/.github/workflows/run_qaqc.yaml +++ b/.github/workflows/run_qaqc.yaml @@ -2,6 +2,7 @@ name: qaqc on: pull_request: + types: [opened, reopened, synchronize, closed] push: branches: [main] @@ -31,12 +32,12 @@ jobs: poetry run pytest - name: Build badge - if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} + if: ${{ github.event_name == 'pull_request' && github.envent.pull_request.type == 'closed' }} run: | poetry run coverage-badge -f -o docs/assets/badges/coverage.svg echo '' >> docs/assets/badges/coverage.svg git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git add docs/assets/badges/coverage.svg - git commit -m "Update coverage badge" - git push origin HEAD:${{ github.head_ref }} + git commit -m "Updated coverage badge" + git push origin HEAD diff --git a/changelog.md b/changelog.md index 3959175..1d8e634 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,13 @@ The versioning pattern is `YYYY.MM.DD.micro(a/b/{none if release}) --- +## [2025.08.14.2a] + +### Fixes + +- Iteration on last update since main is the default branch only needs to push to HEAD (not HEAD:) +- Changing condition to on pull_request closure instead of push to main + ## [2025.08.14.1a] ### Fixes diff --git a/pyproject.toml b/pyproject.toml index 05ba1ee..bbfb635 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cfa.dataops" -version = "2025.08.14.1a" +version = "2025.08.14.2a" description = "Data cataloging, ETL, modeling, verification, and validation for CFA" authors = [ { name = "Phil Rogers", email = "ap66@cdc.gov" },