-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action cannot be triggered after the mirror repository is synchronized #24824
Labels
Comments
This was referenced May 25, 2023
Confirmed with manual testing that this is now fixed after merge of #24634 to main. |
test the latest version has fixed. close the issue. |
lunny
pushed a commit
that referenced
this issue
May 30, 2023
Codeberg-org
pushed a commit
to Codeberg-org/gitea
that referenced
this issue
Jun 3, 2023
…o-gitea#24994) replace go-gitea#24868 just a patch to fix go-gitea#24824 in v1.19.4 The reference name of commits when synchronizing should also has prefix like refs/heads/<branch-name>. (cherry picked from commit 826b7b9)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
The action workflow cannot be triggered after the mirror repository is synchronized when the workflow has branch filter parameters (see the below code)
But when the workflow does not have any filter parameters (see the below code), the workflow can be triggered.
The reproduce steps:
I check the log file (log level is set to
trace
), and find these logsSo I check the code in
modules/actions/workflows.go:200
. The variablerefName
does not containgit.BranchPrefix
(refs/heads/
), so the workflow would not be triggered after the repository is synchronized if the workflow file has branch filter.Then I check the
results
variable inservices/mirror/mirror_pull.go:413
, the fieldrefName
also does not containgit.BranchPrefix
.Gitea Version
Test in v1.19.3 and latest commit #1698c15cba8f9eedfcb6af8226f3e97950480aca
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.40.1
Operating System
Debian 11
How are you running Gitea?
I use the
gitea/gitea:1.19.3
docker image to run gitea. To verify whether the latest version has fixed this issue, I download the latest code, and executeTAGS="bindata sqlite sqlite_unlock_notify" make build
(the golang version is 1.20.4, the nodejs version is 18.16.0) to build the latest binary file and put it intogitea/gitea:1.19.3
image, then use the modified image to test.Database
MySQL
The text was updated successfully, but these errors were encountered: