mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #1784] [MERGED] fix: remove hardcoded reference to github.com when using reusable remote workflows and remote actions #2127
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#2127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1784
Author: @shubhbapna
Created: 5/1/2023
Status: ✅ Merged
Merged: 5/3/2023
Merged by: @mergify[bot]
Base:
master← Head:issue-1588📝 Commits (3)
4c21615fix filename for remote reusable workflow and remove hardcoded reference to github.com0dc2920remove hardcoded reference to github.com for remote action308edcdMerge branch 'master' into issue-1588📊 Changes
2 files changed (+21 additions, -16 deletions)
View changed files
📝
pkg/runner/reusable_workflow.go(+16 -10)📝
pkg/runner/step_action_remote.go(+5 -6)📄 Description
fixes #1588
By removing reference to the hardcoded
github.comand instead usingserverURLfrom github context, we can start controlling where we clone these actions/workflows from. So for example if we wantactto use ssh then we can simply pass the following option:Moreover, I noticed that for reusable workflows we are cloning the repositories in a directory named -
{owner}-{repo}-.github-workflows-{filename}@{ref}. However if we change this directory name to be{owner}-{repo}@{ref}, we will be able to reduce the number of clonesactwill make when using multiple reusable workflows from the same repository.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.