Skip to content

Commit

Permalink
Merged in NOISSUE/fix-git-conflict (pull request #59)
Browse files Browse the repository at this point in the history
NOISSUE: Fix pushback to Github failure

Approved-by: Huy Vo
  • Loading branch information
Julio Rincon committed Mar 11, 2024
2 parents 247dba4 + 27db166 commit d4abf18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/do-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ git diff-index --quiet HEAD -- || {
# update current version reference
git tag -fa $CUR_VERSION -m "Updated to latest version"
git push -d origin $CUR_VERSION
git push --follow-tags
git push --follow-tags $DRY_RUN -v
}
9 changes: 6 additions & 3 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,22 @@ definitions:
caches:
- node
deployment: production
clone:
depth: full
script:
- pipe: atlassian/artifactory-sidekick:v1
- source .artifactory/activate.sh
- apt-get update && apt-get install -y git
- git remote set-url origin [email protected]:atlassian/artifact-publish-token.git
- export [email protected]:atlassian-labs/artifact-publish-token.git [email protected]:atlassian-labs/artifact-publish-token.git
- git remote set-url origin $BB_REPO
- mv ~/.ssh/config ~/.ssh/config-bak
- (mkdir -p ~/.ssh ; umask 077 ; echo ${SECART_BOT_SSH_KEY} | base64 --decode > ~/.ssh/id_rsa)
- npm install
- export CUR_VERSION=v1.0.1
- npm run release
- mv ~/.ssh/config-bak ~/.ssh/config
- ( git show -s --format=%D HEAD | grep $CUR_VERSION ) && git push -d [email protected]:atlassian-labs/artifact-publish-token.git $CUR_VERSION || echo true
- git push [email protected]:atlassian-labs/artifact-publish-token.git HEAD:main --follow-tags
- ( git show -s --format=%D HEAD | grep $CUR_VERSION ) && git push -d $GITHUB_REPO $CUR_VERSION -v $DRY_RUN || echo true
- git push $GITHUB_REPO HEAD:main --follow-tags -v $DRY_RUN
pipelines:
default:
- parallel:
Expand Down

0 comments on commit d4abf18

Please sign in to comment.