CI: what is the purpose of tag_test?

While reading the .drone.yml file, I ran into the following stanza:

  - name: tag-pre-condition
    pull: always
    image: drone/git
      - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}

I’m curious to know what the tag_test is for?

one of our tests requires at least one ref to be set, and drone doesn’t set heads for tags. So we artificially add a ref so the test has something to look at.

1 Like