Skip to content
Open

add #56

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,20 @@ jobs:
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.ARTIFACT_PATH }}
- name: Commit and Push to Forked Repository
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Misleading step name — this pushes to the origin repo, not a fork.

The step is named "Commit and Push to Forked Repository", but git push origin HEAD:${{ github.ref_name }} targets origin, which is the repository the workflow is running in—not a fork. Consider renaming to something like "Commit and Push artifact to repository".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/build.yml at line 82, Rename the misleading GitHub Actions
step label that reads "Commit and Push to Forked Repository" to accurately
reflect its behavior (it runs `git push origin HEAD:${{ github.ref_name }}`
which pushes to origin, not a fork); update the step name string (the step with
the current name) to something like "Commit and Push artifact to repository" or
"Commit and Push to origin repository" so the label matches the actual `git
push` action being performed.

run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
mkdir -p bin/
cp "${{ env.ARTIFACT_PATH }}" bin/

REPO_URL="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
git remote set-url origin "$REPO_URL" 2>/dev/null || git remote add origin "$REPO_URL"

git add bin/"${{ env.ARTIFACT_NAME }}"
git commit -m "dist: add repackaged plugin ${{ env.ARTIFACT_NAME }} [skip ci]"
git push origin HEAD:${{ github.ref_name }}


env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Binary file not shown.
Binary file added bin/lfenghx-skill_agent_0.0.3-offline.difypkg
Binary file not shown.