[FEAT] As a developer, I want to see these actions listed on the Github Marketplace.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- bash, git, github-actions
- Lĩnh vực
- ci-cd
Hướng nghiên cứu
The payload names no file in this repository. The only concrete material is the composite action YAML in the issue body, which uses git subtree split to push a subdirectory to another repo and tag it. Start by deciding which actions here would be published and whether maintainers want separate repositories at all. Done would mean a written plan agreed with maintainers, not a code change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
💡 Feature request
Feature Name
Github-Actions Monorepo splitter.
The Desired Behavior
It would be great if we could list these actions on the marketplace for better visibility.
@Tjitse-E was the original one to point this out, but the common pattern for actions is to put them in their own repo.
Luckily enough, since this is a git repo, doing sub-repo splits and tagging is actually quite easy.
I have an action that already does this:
name: "Publish Subtree"
author: "Graycore"
description: "A Github Action that publishes a subdirectory of a monorepo to another repo"
inputs:
targetRepo:
description: repository to sync the files to
required: true
sourceDir:
description: sub-directory that will be the source of the repository
required: true
token:
description: Github Token
required: true
syncBranch:
default: sync-branch
description: temporary branch that will be used for syncing
required: false
runs:
using: composite
steps:
# Add the target repository as a remote and fetch its branches
- name: Add target repo and fetch branches
run: |
git remote add target https://oauth2:${{ inputs.token }}@${{ inputs.targetRepo }}
git fetch target
shell: bash
# Sync the subdirectory using git subtree
- name: Create subtree branch
run: |
git subtree split --prefix=${{ inputs.sourceDir }} -b ${{ inputs.syncBranch }}
shell: bash
# Push the changes to the target repository
- name: Push changes to target repo
run: |
git push target ${{ inputs.syncBranch }}:main
shell: bash
# Create tag and push to target repo if triggered by tag event
- name: Create tag
if: github.ref_type == 'tag'
shell: bash
run: |
git checkout ${{ inputs.syncBranch }}
git config --global user.email "[email protected]"
git config --global user.name "Beep Boop"
git tag -a subtreetag -m ${{ github.ref_name }}
git push target subtreetag:${{ github.ref_name }}
But I haven't published it anywhere public. Feel free to use it, I'm stating it as MIT-licensed.
Your Use Case
As a developer, I want to see these actions listed on the Github Marketplace.
- Ngôn ngữ chính
- TypeScript
- Star
- 12
- Fork
- 15
- Merge trung bình
- 3 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mage-os/github-actions
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
mage-os/github-actions#341 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
mage-os/github-actions#340 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
mage-os/github-actions#364 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 65/100
mage-os/github-actions#363 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
mage-os/github-actions#359 · 3 bình luận ·
Tất cả issue của mage-os/github-actions
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
genfeedai/genfeed.ai#11828 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
IbrahimHafez1/loadwise#251 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
erkamyaman/unslop-anything#415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Yeachan-Heo/oh-my-codex#4278 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
admin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày