diff --git a/.woodpecker/publish-release-plz-update-pr-image.yml b/.woodpecker/publish-release-plz-update-pr-image.yml new file mode 100644 index 0000000..6c7f4e2 --- /dev/null +++ b/.woodpecker/publish-release-plz-update-pr-image.yml @@ -0,0 +1,16 @@ +when: + event: [push, manual] + branch: main + path: ["release-plz/update-pr.Dockerfile"] + +steps: + publish: + image: plugins/kaniko + settings: + repo: jasterv/release-plz-update-pr + tags: 0.3,latest + username: + from_secret: DOCKERHUB_USERNAME + password: + from_secret: DOCKERHUB_PASSWORD + dockerfile: release-plz/update-pr.Dockerfile diff --git a/release-plz/update-pr.sh b/release-plz/update-pr.sh old mode 100644 new mode 100755 index 5293ba0..90a422b --- a/release-plz/update-pr.sh +++ b/release-plz/update-pr.sh @@ -39,7 +39,7 @@ git config --global user.email "$BOT_EMAIL" git config --global user.name "$BOT_NAME" # Create or switch to the feature branch -git checkout -b "$TEMP_BRANCH" +git checkout -B "$TEMP_BRANCH" git add . git commit -m "$COMMIT_MESSAGE"