Page MenuHomePhabricator

[CI] Automated commits: use nameref to get the current version
ClosedPublic

Authored by Fabien on Sep 8 2020, 09:18.

Details

Summary

Using the standard output to get the version cause garbage to get into
the variable. Using nameref ensure only the version string is assigned
to the named variable.

Test Plan
COMMIT_TYPE=update-aur-version-bitcoin-abc \
  ./contrib/source-control-tools/automated-commits.sh

Diff Detail

Repository
rABC Bitcoin ABC
Branch
automated_namerefs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 12658
Build 25417: Build Diffbuild-clang-10 · build-clang-tidy · build-diff · build-without-wallet
Build 25416: arc lint + arc unit

Event Timeline

Fabien requested review of this revision.Sep 8 2020, 09:18
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
contrib/source-control-tools/automated-commits.sh
102

...

This revision is now accepted and ready to land.Sep 8 2020, 11:57
contrib/source-control-tools/automated-commits.sh
102

I'm working toward using a configuration file (just like the regular CI builds) that will remove the need for this script.