question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HACS/action not working for tag refs

See original GitHub issue

Describe the issue

In a pipeline I have for ControllerX, I have a HACS validation step for every commit made in main, tags or PRs. I have not encountered any problems with it until I released a new version, and the pipeline is failing because of the HACS validation step. I enabled debugging and this is what I see:

##[debug] Using selector: EpollSelector
::INFO:: Category: appdaemon
::INFO:: Repository: xaviml/controllerx@refs/tags/v4.21.0
##[debug] <Appdaemon xaviml/controllerx> Checking repository.
##[debug] <Appdaemon xaviml/controllerx> Running checks against refs/v4.21.0
Error:  Repository structure for refs/v4.21.0 is not compliant
##[debug]Docker Action run completed with exit code 1
##[debug]Finishing: Run hacs/action@main

This is the run: https://github.com/xaviml/controllerx/runs/6845533101?check_suite_focus=true This is another run but executed on the same commit (ad73d654e37a77286e9bbdb93a7b30d0c9d42309): https://github.com/xaviml/controllerx/runs/6845513169?check_suite_focus=true

The first one is failing and the second one is passing.

Note that this was working 2 days ago when I released 4.21.0b2: https://github.com/xaviml/controllerx/runs/6818622344?check_suite_focus=true

The debugging messages did not help me figure out why this is happening, but I am guessing this is related to work done in https://github.com/hacs/integration/pull/2740 and https://github.com/hacs/integration/pull/2737

For now, I will disable HACS validation from the pipeline, but I will keep you updated if I found what is causing it.

Thank you for your hard work!

Link to action run

https://github.com/xaviml/controllerx/runs/6845533101?check_suite_focus=true

Link to action configuration

https://github.com/xaviml/controllerx/blob/main/.github/workflows/cicd.yaml#L58-L65

Checklist

  • I have filled out the issue template to the best of my ability.
  • I have read https://hacs.xyz/docs/issues
  • This issue is related to the HACS action.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ludeeuscommented, Jun 14, 2022
+                    # For tag events
+                    if ref.startswith("refs/tags/"):
+                        ref = ref.split("/")[-1]

Adding that is fine, as that will only affect you

0reactions
xavimlcommented, Jun 14, 2022

Thank you, I will create PR when I get chance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git tag condition not working on Github Actions - Stack Overflow
I want to use action-gh-release on my github action, and my .yml is like: ... release: needs: assemble if: startsWith(github.ref, ...
Read more >
can't get git tag annotation · Issue #1717 · actions/runner-images
Signing is not required for this behaviour, only that the tag is annotated, so git tag -a v1.0.0 would also work.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found