Skip to content

Commit

Permalink
Replace {type_id} for releases with {release_tag}
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Jun 11, 2021
1 parent 0f13cf6 commit 6160002
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,21 @@ A sample config file:
repo: datalad/datalad
vars:
path_prefix: '{year}//{month}//{day}/{ci}/{type}/{type_id}/{build_commit[:7]}'
path_prefix: '{year}//{month}//{day}/{ci}/{type}'
build_prefix: '{path_prefix}/{type_id}/{build_commit[:7]}'
ci:
github:
path: '{path_prefix}/{wf_name}/{number}/logs/'
artifacts_path: '{path_prefix}/{wf_name}/{number}/artifacts/'
releases_path: '{path_prefix}/'
path: '{build_prefix}/{wf_name}/{number}/logs/'
artifacts_path: '{build_prefix}/{wf_name}/{number}/artifacts/'
releases_path: '{path_prefix}/{type}/{release_tag}/'
workflows:
- test_crippled.yml
- test_extensions.yml
- test_macos.yml
travis:
path: '{path_prefix}/{number}/{job}.txt'
path: '{build_prefix}/{number}/{job}.txt'
appveyor:
path: '{path_prefix}/{number}/{job}.txt'
path: '{build_prefix}/{number}/{job}.txt'
accountName: mih
projectSlug: datalad
since: 2021-01-20T00:00:00Z
Expand Down Expand Up @@ -331,8 +332,8 @@ Placeholder Definition
``pr``, this is the number of the associated pull request,
or ``UNK`` if it cannot be determined; for ``push``, this
is the name of the branch to which the push was made (or
possibly the tag that was pushed, if using Appveyor); for
``release``, this is the name of the tag
possibly the tag that was pushed, if using Appveyor) [1]_
``{release_tag}`` *(``releases_path`` only)* The release tag
``{build_commit}`` The hash of the commit the build ran against or that was
tagged for the release. Note that, for PR builds on
Travis and Appveyor, this is the hash of an autogenerated
Expand Down
2 changes: 1 addition & 1 deletion src/tinuous/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def path_fields(self) -> Dict[str, str]:
"second": utc_date.strftime("%S"),
"ci": "github",
"type": "release",
"type_id": self.tag_name,
"release_tag": self.tag_name,
"build_commit": self.commit,
"commit": self.commit,
}
Expand Down

0 comments on commit 6160002

Please sign in to comment.