Skip to content

ci(main-wkflow): ensure file changes are only detected from last push to current HEAD - #1040

Merged
codejedi365 merged 1 commit into
python-semantic-release:masterfrom
codejedi365:ci/main-change-files-determination
Sep 28, 2024
Merged

codejedi365 merged 1 commit into
python-semantic-release:masterfrom
codejedi365:ci/main-change-files-determination

Conversation

@codejedi365

@codejedi365 codejedi365 commented Sep 28, 2024 •

Copy link
Copy Markdown
Contributor

Purpose

  • Ensures that file changes look at previous push to current head

Rationale

I had to review the github action again to make sure how the push event would be handled as opposed to the PR event. I needed to make sure that first the commit would exist with the different fetch depth but then also make sure that we specified the base sha of where it was prior to this latest push. You can't just do a fetch depth of 2 in the case you used the GitHub PR resolution Rebase and Merge as it may be more than 1 commit that is all pushed at once.

How I tested

Unfortunately, not much to test other than doing it live as its hard to replicate the environment within github actions

@codejedi365
codejedi365 merged commit adb1f7c into python-semantic-release:master Sep 28, 2024
@codejedi365
codejedi365 deleted the ci/main-change-files-determination branch September 28, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant