The suggested default branch example does not work for schedule
See original GitHub issuetags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
Here is an example:
https://github.com/felipecrs/jenkins-agent-dind/blob/master/.github/workflows/ci.yml#L35
https://github.com/felipecrs/jenkins-agent-dind/runs/5964649319?check_suite_focus=true#step:3:31
I would say that this variable does not get filled properly for schedule events, which is meaningful, as metadata-action relies on it.
Issue Analytics
- State:
- Created a year ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
Mercurial: keep default branch "active" - Stack Overflow
So I suggest you change your deployment system to show open branches ( hg branches ) instead of active branches ( hg branches...
Read more >How to trigger repository_dispatch event for non-default branch?
My problem with the repository dispatch is that it needs a token with repo permission. Isn't it possible to severely limit the scope...
Read more >Ignore default branch protection for first push - GitLab.org
Problem to solve. When Default branch protection is set to Fully protected developers cannot push new commits to the default branch.
Read more >Pipeline default branch - Azure DevOps - Microsoft Learn
A pipeline's default branch defines the pipeline version used for manual builds, scheduled builds, retention policies, and in pipeline ...
Read more >Set the Default Branch on your Azure DevOps Repos
Changing a default Git branch might not be as simple as mentioned in the upper chapter, some additional steps might be needed in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes let’s keep it that way in the meantime. Will see if there is some traction from other users for this pattern.
This action is not a general purpose one for other steps and only exposes what it does. It should be done upstream by GitHub.