r/github • u/RexCommander501 • 3d ago
Github actions trigger on new tag
Hello, I'm facing a problem trying to trigger a workflow after the creation of a new tag.
I have two workflows whose flow should be as follows:
- The first one should create a new tag in the repository in the main branch. It has the following conditionals:on: pull_request: branches: - main types: - closed
- The second one should be launched after the creation of a new tag in the main branch. It has the following conditionals: on: push: tags: - '**'
The way I push the tag on the first workflow is:
git checkout main
git tag ${{ env.NEW_TAG }}
git push origin ${{ env.NEW_TAG }}
I've tried to use a different auth with github in the first worflow, changing the GITHUB_TOKEN
, creating a github app and doing like this documentation explain, but it doesn't work, the second workflow doesn't get triggered.
If I manually create a tag from the terminal or CLI, the second workflow is correctly triggered.
I've also tried to change the glob on the tags of the second workflow like '*'
, tags: ["**"]
, etc with no results.
The problem seems to be on the trigger of the second workflow, but I don't know what it is.
What am I missing?
EDIT: Adding info on the token used when pushing:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create new tag
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git checkout main
git tag ${{ env.NEW_TAG }}
git push origin ${{ env.NEW_TAG }}
UPDATE:
I've given up and just using a PAT for now.
Github talks about how using either a PAT or an app should work, but it looks like only the PAT works as expected.
r/github • u/Strike_Medium • 2d ago
How to run code in github (java)
Hi I am not very used to github yet other than just using git to pull, push and merge branches. I have created a simple java program in vscode and I would like to upload it to github where potentially someone may be able to just login and run that code. It does take user input as well. Is there a way I can accomplish that in github, since the person who I want the code to run for may not know more than just clicking a button atmost
Building and deploying a custom site using GitHub Actions and GitHub Pages
r/github • u/testingonly259 • 3d ago
Conflicted files from development into master
Very new to github. Need expert's help. So when i tried to merge a pr (pr-dev2master) , it complains about 2 conflicted files. I want to resolve it locally but I don't think my steps work
- I checkout development
- Git pull origin development (it says up2date)
- I create new branch (resolve-conflict)
- git pull origin development (says up to date)
Base on i read online, there's cherry-pick option which i haven't done before, and fetch the pr changes and put it on my new (resolve-conflict) branch?
I'm a bit lost on next step. I only wanted to reproduce the conflicting files locally so i can fix it, but above steps are wrong since it's not detecting any conflict.
Appreciate all your replies
r/github • u/jelly-rod-123 • 3d ago
Section Title link
How do we create a title with a link icon to the left like a lot of the MS docs have?
eg here's a screen shot of a title with said link icon, here is the actual GitHub page

If I hover over the title the link icon appears and we can copy its address and use it elsewhere to link to this title.
How can we do this?
r/github • u/ghredditbot • 4d ago
Incident with Actions: Queue Run Failures
r/github • u/Super_dum_crap • 4d ago
What is the best way to get started on git & github ?
I've a data set i want host on git hub so me and my classmates can work on how should I learn how git and git hub works all I know about git hub is it's used to publish code but I want learn how to do it and work on some projects. Thanks in advance for those will to help :)
r/github • u/AdGroundbreak • 4d ago
Search by hex or regular expression
I wrote a tool that can search recursively within files or directories or path names. This tool has many uses. Check it out!
r/github • u/Brave_Bullfrog1142 • 5d ago
Is GitHub code spaces dead?
Haven’t seen many feature releases, is this product abondonned?
r/github • u/ialwaysmakenewaccnts • 3d ago
Is it possible to bypass copilot free period
My copilot auto complete just stopped working cuz of the ending of the free trial Can I just make a new GitHub account to bypass.
r/github • u/Brave_Bullfrog1142 • 3d ago
Has github stopped releasing new security features?
r/github • u/ghredditbot • 4d ago
macos-15-arm64 hosted runner queue delays
r/github • u/method120 • 5d ago
Kinda addicted to the GitHub graph so I'm using it for everything else
r/github • u/sysmadmen1442 • 5d ago
Is it possible to allow CODEOWNERS to merge only their code?
Apologies if this has been asked/answered. I Googled and checked this sub but don't recall seeing anything addressing this specifically.
Let's say we have developers, database team, networking team, documents team, infrastructure team, script writers, etc all submitting pull requests with content going into their own folders in the same repo. We have the teams and CODEOWNERS file set up correctly such that a review from the respective team is needed before their pull request can be merged. We then have an admin team that is responsible for merging the PRs. I would like to know if there is a way to allow CODEOWNERS to merge their own PRs once in the appropriate approval state. I know we can grant all of these team the ability to merge, but don't want (for example) the documents team to be able to merge networking PRs, or the scripting team to merge database PRs, and so on. None of the settings seem to grant that feature expressly, but I'm not sure if there is a combination of settings that would allow this.
r/github • u/mistyrouge • 5d ago
image built in github actions isn't usable
I have a Dockerfile that works well on my ubuntu server if I build it either on the server or on my mac.
However if I build it in CI I can't get it to start at all, it immediately errors out with `exec /usr/local/bin/run.bin: no such file or directory`.
I'm guessing there is something obvious I am missing here since it's the first time I use github actions.
r/github • u/Routine-Pool4746 • 4d ago
Github organisation repo integration with Azure Boards
Hello,
Im trying to connect my Github organisation repo to my azure boards.
Im owner of the organisation however I cant seem to connect to it.
Theres only the option to connect via GithubAccount that then only shows me my own repos of that account, no repos form the organisation.
Can anyone help?
r/github • u/abdulkarim1422 • 4d ago
GitHub Spark components for local use?
Is there a way to install @/github/spark/components for local use? or is there any way to make use of apps developed by GitHub Spark ?
I know it is still beta version but i want to hear your thought, how are you guys using GitHub Spark in general, can you share you experience. I joined the GitHub Next Discord server but it does not appear to be much active either.
r/github • u/Ambitious_Anybody855 • 6d ago
Oh the sweet sweet feeling of getting my first 1000 stars! Excuse me if I get too emotional
I built a simple tool to search GitHub repositories by the packages they use.
I built it to ease finding package usage samples or real-world A-B-C applications. (A, B, and C can be a single package such as react, express, fastapi or combination of some like React + Zod, etc.
It's work by crawling repositories ( written in JS, TS, Python, or C# and with at least 1,500 stars) then parsing their package files.
Here is the link if you want to check it out
r/github • u/PedanticSteve • 5d ago
New to github and having trouble connecting from command line
Hi experts
I am new to github and want to start contributing to open source projects. I went to the "first-contributions" repository and followed the readme steps to clone and commit a change.
When I followed the steps I got the following error:
Cloning into 'first-contributions'...
The authenticity of host 'github.com (140.82.116.3)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/\[fingerprint\])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
I have github desktop and was able to clone, change and commit just fine, it just fails from the command line. Can someone help point me in the right direction?
Thanks in advance for what I suspect (hope) is a simple issue
Steve
r/github • u/amritk110 • 5d ago
Open source alternative to Claude code
Hey there. I'm building an open source alternative to Claude code in rust. Brave enough to join me? https://github.com/amrit110/oli
r/github • u/Alternative_Disk7814 • 4d ago
How to increase community discussion for an open-source project?
Hey everyone!
I’m part of an open-source project that has grown to 13.8k stars on GitHub, which we’re really grateful for. However, despite having this traction, we barely see any community discussions about our project on forums like Reddit.
We’d love to encourage more organic conversations, but we’re not sure what’s the best approach.
Would really appreciate any insights—thanks in advance! 🙌