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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #23360)

...

This revision is now accepted and ready to land.Sep 8 2020, 11:57
contrib/source-control-tools/automated-commits.sh
102 ↗(On Diff #23360)

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