Skip to content

Commit 3a80454

Browse files
authored
cdc-ap66_fix_push_HEAD (#17)
* to run at closure, before merge to main * version bump * removing head_ref to be safe * more context added * typo
1 parent a634ee4 commit 3a80454

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/run_qaqc.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: qaqc
22

33
on:
44
pull_request:
5+
types: [opened, reopened, synchronize, closed]
56
push:
67
branches: [main]
78

@@ -31,12 +32,12 @@ jobs:
3132
poetry run pytest
3233
3334
- name: Build badge
34-
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
35+
if: ${{ github.event_name == 'pull_request' && github.envent.pull_request.type == 'closed' }}
3536
run: |
3637
poetry run coverage-badge -f -o docs/assets/badges/coverage.svg
3738
echo '<!-- timestamp: '"$(date '+%Y-%m-%d %H:%M:%S')"' -->' >> docs/assets/badges/coverage.svg
3839
git config user.name "${{ github.actor }}"
3940
git config user.email "${{ github.actor }}@users.noreply.github.com"
4041
git add docs/assets/badges/coverage.svg
41-
git commit -m "Update coverage badge"
42-
git push origin HEAD:${{ github.head_ref }}
42+
git commit -m "Updated coverage badge"
43+
git push origin HEAD

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ The versioning pattern is `YYYY.MM.DD.micro(a/b/{none if release})
88

99
---
1010

11+
## [2025.08.14.2a]
12+
13+
### Fixes
14+
15+
- Iteration on last update since main is the default branch only needs to push to HEAD (not HEAD:<branch>)
16+
- Changing condition to on pull_request closure instead of push to main
17+
1118
## [2025.08.14.1a]
1219

1320
### Fixes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cfa.dataops"
3-
version = "2025.08.14.1a"
3+
version = "2025.08.14.2a"
44
description = "Data cataloging, ETL, modeling, verification, and validation for CFA"
55
authors = [
66
{ name = "Phil Rogers", email = "ap66@cdc.gov" },

0 commit comments

Comments
 (0)