# \[ANN\] The TagBot GitHub App is deprecated in favour of the TagBot GitHub Action

**URL:** https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344
**Category:** Tooling
**Tags:** tagbot
**Created:** [February 8, 2020, 12:52pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344 "2020-02-08T12:52:16Z")
**Posts on this page:** 14
**Page:** 3

<div class="post-metadata">

### Author: ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)
#### Post date: [February 10, 2020, 3:05pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/41 "2020-02-10T15:05:58Z")

</div>

To clarify what was already said, the thing that is incapable of kicking off additional GitHub Actions events is simply the default token provided to GitHub Actions, not GitHub Actions itself. So if you supply your own token, it’ll work fine even though it’s still through the GitHub API. And if you provide an SSH key, TagBot will use that key to push the tag via CLI, so actions get triggered just fine as well.

---

<div class="post-metadata">

### Author: ![Cory\_Simon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cory_simon/32/3950_2.png) [@Cory\_Simon](https://discourse.julialang.org/u/Cory_Simon)
#### Post date: [February 19, 2020, 12:34am UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/42 "2020-02-19T00:34:44Z")

</div>

from what I understand, since my `Controlz.jl` package is an official package in the Julia registry, then every time I make tag a release on Github, this should update the Julia registry with this new release. Is that right? I made a new release on Github but then the package registry is not updated.

[Releases · SimonEnsemble/Controlz.jl · GitHub](https://github.com/SimonEnsemble/Controlz.jl/releases) ← I made two releases  
[General/C/Controlz at master · JuliaRegistries/General · GitHub](https://github.com/JuliaRegistries/General/tree/master/C/Controlz) ← not updated

---

<div class="post-metadata">

### Author: ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)
#### Post date: [February 19, 2020, 1:28am UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/43 "2020-02-19T01:28:36Z")

</div>

No, you’ve got it backwards actually 😅  
You register your package with Registrator, then when that’s finished doing its thing TagBot will make a GitHub release.

- [Registrator docs](https://github.com/JuliaRegistries/Registrator.jl/blob/master/README.md#how-to-use)
- [More info in the General registry](https://github.com/JuliaRegistries/General/blob/master/README.md#registering-a-package-in-general)

---

<div class="post-metadata">

### Author: ![eford](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eford/32/12990_2.png) [@eford](https://discourse.julialang.org/u/eford)
#### Post date: [February 21, 2020, 4:55pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/44 "2020-02-21T16:55:32Z")

</div>

I merged the PR as requested. However, then I got an error email  
" Run failed for master (a98aa77)

Repository: ExoJulia/ExoplanetsSysSim.jl  
Workflow: TagBot  
Duration: 30.0 seconds  
Finished: 2020-02-21 09:01:08 UTC

[View results](https://github.com/ExoJulia/ExoplanetsSysSim.jl/commit/a98aa77d587d7782c85d35af2c963b87d362312f/checks?check_suite_id=472836640)

Jobs:

- [2ff342d3-b786-5c12-861a-919288c85c4f](https://github.com/ExoJulia/ExoplanetsSysSim.jl/runs/459775310) failed (0 annotations)

—"

Following that link yield a red X next to " Run JuliaRegistries/TagBot@v1" and some error message from a Python script, maybe related to Docker. I can’t tell if this is expected, something that will fix it self automatically, a problem with your scripts, or the result of some unsatisfied assumption about what my package would provide.

Any hints?  
Thanks,  
@eford

---

<div class="post-metadata">

### Author: ![dehann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dehann/32/2003_2.png) [@dehann](https://discourse.julialang.org/u/dehann)
#### Post date: [February 21, 2020, 5:07pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/45 "2020-02-21T17:07:24Z")

</div>

EDIT: Oh wait, it just fixed itself somehow. [Here is the new release that I expected earlier](https://github.com/JuliaRobotics/DistributedFactorGraphs.jl/releases/tag/v0.6.0).

HI, I’m getting something similar with Tagbot not creating a new release as expected. Don’t quite know where to ask so will follow here. The main issue seems to be the git fetch is not splicing in a target SHA or something. Here is action workflow output (copying from browser):

```julia
Processing version v0.6.0 (d8aa89814f4ee4451491ad9a053782c4945b6670)
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
##[error]Git command 'git -C /tmp/tagbot_repo_11_28_w8 rev-parse ' failed
Exiting with status 1

```

I double checked that the tagbot workflow file in the repo is as specified at the top of this Discourse post. A similar process worked on one of my other repo’s a few days ago, so this might be a common problem higher up rather than local repos?

Thanks in advance for any help!

EDIT:

```julia
Run JuliaRegistries/TagBot@v1
INPUT_TOKEN -e INPUT_REGISTRY -e INPUT_BRANCHES -e INPUT_DISPATCH -e INPUT_DISPATCH_DELAY -e INPUT_LOOKBACK -e INPUT_SSH -e INPUT_SSH_PASSWORD -e INPUT_GPG -e INPUT_GPG_PASSWORD -e INPUT_CHANGELOG -e INPUT_CHANGELOG_IGNORE -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl":"/github/workspace" degraafc/tagbot:1
Processing version v0.6.0 (d8aa89814f4ee4451491ad9a053782c4945b6670)
Generating changelog for version v0.6.0 (d8aa89814f4ee4451491ad9a053782c4945b6670)
Creating release v0.6.0 at d8aa89814f4ee4451491ad9a053782c4945b6670
Exiting with status 0

```

---

<div class="post-metadata">

### Author: ![laborg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laborg/32/5474_2.png) [@laborg](https://discourse.julialang.org/u/laborg)
#### Post date: [February 21, 2020, 6:06pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/46 "2020-02-21T18:06:33Z")

</div>

The default TagBot.yaml (as written in the first post) is scheduled to run every hour. Can anyone share insights about the resource cost of such a run? So is this just a single http call or is there a more involved machinery in play like e.g. docker container startup etc…?

It should be made more visible what this Tagbot does to allow better informed decision on how to use it. In my use case of a library that changes rarely, the Tagbot is either a resource hog when configured to be run often, or results in a large tagging “latency” in the other case.

Maybe this can be achieved with a simple comment in the TagBot.yaml template above the cron line. e.g: `# spin up ubuntu virtual machine and check repository for tag-action every hour`. (…or whatever the TagBot actually does).

---

<div class="post-metadata">

### Author: ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)
#### Post date: [February 21, 2020, 6:30pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/47 "2020-02-21T18:30:43Z")

</div>

> [@eford](#):
>
> I merged the PR as requested. However, then I got an error email

> [@dehann](#):
>
> HI, I’m getting something similar with Tagbot not creating a new release as expected

My bad guys! I pushed a new version but forgot one step of the release process. I’m working on setting up automatic error reporting without actually failing the action so you aren’t notified of this stuff in the future, as well as a more reliable, automated release process.

> [@laborg](#):
>
> Can anyone share insights about the resource cost of such a run?

TagBot runs in a Docker container, so yes, there is some overhead. Usually it’ll run for ~30 seconds including all that overhead. I think it’s pretty reasonable for people to reduce the frequency to once a day.

---

<div class="post-metadata">

### Author: ![dpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpo/32/3335_2.png) [@dpo](https://discourse.julialang.org/u/dpo)
#### Post date: [April 23, 2020, 4:19pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/48 "2020-04-23T16:19:59Z")

</div>

I’m getting spammed by messages of the form

```julia
Run failed for master (3ddf6fa)

Repository: JuliaSmoothOptimizers/PROPACK.jl
Workflow: TagBot
Duration: 0.0 seconds
Finished: 2020-04-23 16:05:52 UTC

View results

Jobs:

```

Is there anything to do about them? The message says nothing about what failed or why. How do I make them stop?

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [April 23, 2020, 4:46pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/49 "2020-04-23T16:46:27Z")

</div>

I don’t know if it’s related, but today GitHub had issues (again): [GitHub Status - Incident on 2020-04-23 13:20 UTC](https://www.githubstatus.com/incidents/2y6v4ltq26g7). Also, I’d suggest to reduce the frequency of TagBot to once per day (maybe at a time different from midnight UTC)

---

<div class="post-metadata">

### Author: ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)
#### Post date: [April 23, 2020, 5:37pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/50 "2020-04-23T17:37:38Z")

</div>

I have also been getting several emails about TagBot runs failing.

---

<div class="post-metadata">

### Author: ![dlfivefifty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlfivefifty/32/1959_2.png) [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)
#### Post date: [April 24, 2020, 9:58am UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/51 "2020-04-24T09:58:05Z")

</div>

I think you opt out of email notifications

---

<div class="post-metadata">

### Author: ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)
#### Post date: [April 24, 2020, 2:27pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/52 "2020-04-24T14:27:28Z")

</div>

Yeah GH has been truly awful for this as of late… I also recommend to reduce the frequency to once daily.  
What I really want is to not have to use the cron trigger and have something that reacts to the registry… AKA the old GitHub App 😅 Despite the benefits of using Actions, sometimes I regret switching over when stuff like this happens.

---

<div class="post-metadata">

### Author: ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)
#### Post date: [May 22, 2020, 3:05am UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/53 "2020-05-22T03:05:41Z")

</div>

What if JuliaRegistrator commented back in the package repo after the new version PR was merged in the General registry? Could you then trigger the workflow based on that comment?

---

<div class="post-metadata">

### Author: ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)
#### Post date: [May 22, 2020, 10:13pm UTC](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344/54 "2020-05-22T22:13:52Z")

</div>

> [@c42f](#):
>
> What if JuliaRegistrator commented back in the package repo after the new version PR was merged in the General registry?

This has been discussed [here](https://github.com/JuliaRegistries/TagBot/issues/125). I definitely support that strategy but some other concerns were raised.

Unrelated, but I’ve been considering creating a new TagBot as an OAuth application that supports a whole bunch of languages/package registries… Maybe one day I’ll get acquired by GitHub like Dependabot did 😅

[Previous page](https://discourse.julialang.org/t/ann-the-tagbot-github-app-is-deprecated-in-favour-of-the-tagbot-github-action/34344.md?page=2)
