Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/csharp-app-release-with-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -219,11 +219,11 @@ jobs:
path: ${{ steps.upload_path.outputs.path }}
if-no-files-found: error

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure' || steps.upload.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in one of the steps above."
echo "The deployment step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down Expand Up @@ -325,7 +325,7 @@ jobs:
if: steps.merge.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in merging the branch. release branch was deleted."
echo "There was an error in merging the branch. Release branch was deleted."
exit 1
shell: bash

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/csharp-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -184,11 +184,11 @@ jobs:
path: ${{ steps.upload_path.outputs.path }}
if-no-files-found: error

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure' || steps.upload.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in one of the steps above."
echo "The deployment step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maven-app-release-with-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -309,11 +309,11 @@ jobs:
include-hidden-files: true
if-no-files-found: error

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure' || steps.upload.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the mvn package command above."
echo "The deployment step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
if: steps.merge.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in merging the branch. release branch was deleted."
echo "There was an error in merging the branch. Release branch was deleted."
exit 1
shell: bash

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -176,11 +176,11 @@ jobs:
include-hidden-files: true
continue-on-error: true

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure' || steps.upload.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the mvn deploy command above."
echo "The deployment step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven-lib-release-with-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -308,11 +308,11 @@ jobs:
name: ${{ steps.build.outputs.artifact }}
path: ${{ steps.build.outputs.artifact-path }}

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the mvn deploy command above."
echo "The deployment step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maven-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -168,11 +168,11 @@ jobs:
path: ${{ steps.build.outputs.artifact-path }}
if-no-files-found: error

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the mvn deploy command above."
echo "The deployment step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
if: steps.merge.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in merging the branch. release branch was deleted."
echo "There was an error in merging the branch. Release branch was deleted."
exit 1
shell: bash

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npm-app-release-with-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down Expand Up @@ -289,11 +289,11 @@ jobs:
name: ${{ steps.build.outputs.artifact }}
path: ${{ steps.build.outputs.artifact }}

- name: Fail build
- name: Build failed so fail the workflow
if: steps.build.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the npm package command above."
echo "The build step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: sh

Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
if: steps.merge.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in merging the branch. release branch was deleted."
echo "There was an error in merging the branch. Release branch was deleted."
exit 1
shell: bash

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
exit 1
fi
Expand Down Expand Up @@ -251,11 +251,11 @@ jobs:
name: ${{ steps.build.outputs.artifact }}
path: ${{ steps.build.outputs.artifact }}

- name: Fail build
- name: Build failed so fail the workflow
if: steps.build.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the npm package command above."
echo "The build step has failed; check the step **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: sh

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
run: |
changelog=$(sed -n -E "/${{ steps.check.outputs.version }}/,/## [[0-9]+\.[0-9]+\.[0-9]+]/ { /## \[/d;p }" changelog.md)
if [[ -z "$changelog" ]]; then
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch."
echo "Changelog content was not found - ensure your changelog.md matches the expected growing format. Deleting release branch and failing."
git push origin -d release
# We can safely fail here because we haven't done anything yet. Changelog.md file should be in correct format.
exit 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-lib-release-with-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ jobs:
name: ${{ steps.build.outputs.artifact }}
path: ${{ steps.build.outputs.artifact-path }}

- name: Delete release branch if deploy failed and fail
if: steps.build.outcome == 'failure'
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the python build and publish commands above."
echo "There was an error in the python build and publish commands **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ jobs:
path: ${{ steps.build.outputs.artifact-path }}
if-no-files-found: error

- name: Delete release branch if deploy failed and fail
- name: If deploy above failed, delete release branch and fail
if: steps.build.outcome == 'failure'
run: |
git push origin -d release
echo "There was an error in the python build and publish commands above."
echo "There was an error in the python build and publish commands **above**. We've deleted the `release` branch to make it easier to run again when ready."
exit 1
shell: bash

Expand Down