Skip to content

Commit

Permalink
fix(tags): push tags after initial push attempt
Browse files Browse the repository at this point in the history
Prevents tags being created when we cannot push to a branch for some reason
  • Loading branch information
joshuef committed Jul 21, 2020
1 parent 7ae5bf2 commit daf6bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const bump = async () => {
// update branch with changes
core.debug(`Attempting to push to ${branch}`);

// first push without tags, in case this fails for some reason
await exec.exec(`git push "https://${actor}:${token}@github.com/${repo}" HEAD:${branch}`);

// then push with tags
await exec.exec(`git push "https://${actor}:${token}@github.com/${repo}" HEAD:${branch} --tags`);

} catch (error) {
Expand Down

0 comments on commit daf6bc3

Please sign in to comment.