Skip to content

Commit

Permalink
Save artifacts to folder versioning-log
Browse files Browse the repository at this point in the history
  • Loading branch information
onimur committed Jul 18, 2020
1 parent 22fa32c commit 6b16980
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/commands/git-checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ steps:
command: |
if [ -n "$CIRCLE_TAG" ]
then
git reset --hard "$CIRCLE_SHA1"
git checkout -q -B "<<parameters.branch>>"
fi
2 changes: 1 addition & 1 deletion src/commands/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ steps:
- run:
command: |
if [ -z "${CIRCLE_TAG+x}" ]; then
if [[ "$(git show -s --format=%B | head -n 1)" == "<<parameters.commit-message>>" ]]; then
if [[ "$(git show -s --format=%B | head -n 1)" == "<<parameters.commit-message>> [skip ci]" ]]; then
circleci-agent step halt
fi
fi
Expand Down
10 changes: 5 additions & 5 deletions src/jobs/changelog-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ steps:
requires: [changelog]
steps:
- run:
name: Save <<parameters.output>> to artifacts
name: Save <<parameters.output>> to versioning-log
command: |
mkdir -p artifacts
find -iname '<<parameters.output>>' -exec cp {} ./artifacts/ \;
mkdir -p versioning-log
find -iname '<<parameters.output>>' -exec cp {} ./versioning-log/ \;
- store_artifacts:
path: artifacts
path: versioning-log
- persist_to_workspace:
root: ./
paths:
- artifacts/*
- versioning-log/*
10 changes: 5 additions & 5 deletions src/jobs/changelog-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ steps:
requires: [changelog]
steps:
- run:
name: Save changelog to artifacts
name: Save changelog to versioning-log
command: |
mkdir -p artifacts
find -iname 'CHANGELOG.md' -exec cp {} ./artifacts/ \;
mkdir -p versioning-log
find -iname 'CHANGELOG.md' -exec cp {} ./versioning-log/ \;
- store_artifacts:
path: artifacts
path: versioning-log
- persist_to_workspace:
root: ./
paths:
- artifacts/*
- versioning-log/*

0 comments on commit 6b16980

Please sign in to comment.