This repository hosts my reusable workflows and workflow templates. Use them if you wish, but please understand I will not provide any support. Workflows might also change at any time.
Checks upstream repository for last commit id and outputs true if it differs from recorded onw.
upstream_repo
: (required) Upstream git repository address, preferrably httpupstream_branch
: (required) The branch name in upstream to monitorlast_upstream_head
: The head id that current head should be compared to. Can be either the id string itself or (relative) path to a file recording it (and nothing else).
upstream_head
: The current HEAD commit id in upstream branchupstream_changed
: True if the said commit id differs from the one recorded in$ci_dir/upstream.head.txt
.
- Works only with public upstreams for now
- Workflow doesn't record commit id. This is by design. Your pipeline must record the new head commit from output.
Validate source code
See workflow file.
None.