Skip to content

Commit

Permalink
checkout current sha after daily docs (digital-asset#3559)
Browse files Browse the repository at this point in the history
Currently if the docs script fails, the Slack message we get mentions the commit title of the docs version that failed to build, which is not super useful. This ensures we get back to the current commit regardless of what happens with the Haskell script.
  • Loading branch information
garyverhaegen-da authored Nov 21, 2019
1 parent e0239a4 commit adceb3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/cron/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

set -euo pipefail

SHA=$(git log -n1 --format=%H)

revert_sha () {
git checkout $SHA
}
trap revert_sha EXIT

cd "$(dirname "$0")"/../..

eval "$(dev-env/bin/dade assist)"
Expand Down

0 comments on commit adceb3a

Please sign in to comment.