Skip to content

Revert to not checking branch before deploy#28

Merged
ericchagnon15 merged 1 commit into
mainfrom
revert-workflow
May 2, 2023
Merged

Revert to not checking branch before deploy#28
ericchagnon15 merged 1 commit into
mainfrom
revert-workflow

Conversation

@ronpandolfi

@ronpandolfi ronpandolfi commented May 1, 2023

Copy link
Copy Markdown
Collaborator

This reverts f01b44e

The above commit is problematic because github.ref can never be both refs/tags/* and refs/heads/main. The only issue with the previous behavior is that pushed tags will deploy even if they are only in a PR (before merging to master). This is non-ideal, but workable if you are aware of the behavior.

I advise that we be careful to only apply tags to the main branch directly to avoid this edge case.

An alternative workflow structure is proposed in #27, however extensive testing is likely required. I recommend to postpone reviewing #27 to post-publication.

@ronpandolfi
ronpandolfi requested a review from ericchagnon15 May 1, 2023 23:29
@codecov

codecov Bot commented May 1, 2023

Copy link
Copy Markdown

Codecov Report

Merging #28 (d3bb3dc) into main (8db6eb6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   96.39%   96.39%           
=======================================
  Files           5        5           
  Lines         305      305           
=======================================
  Hits          294      294           
  Misses         11       11           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ericchagnon15
ericchagnon15 merged commit 72948ef into main May 2, 2023
@ericchagnon15
ericchagnon15 deleted the revert-workflow branch May 2, 2023 16:17
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.

2 participants