Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Jun 23, 2024
1 parent 8f1fc8a commit c28ceda
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/publish-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,28 @@ jobs:
name: snm.rb
path: snm.rb


# 新增的步骤:创建 PR
- name: Checkout homebrew-shined repository
uses: actions/checkout@v3
with:
repository: ityuany/homebrew-shined
token: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
path: homebrew-shined

- name: Copy snm.rb to homebrew-shined
run: |
cp snm.rb homebrew-shined/snm.rb
cd homebrew-shined
git add snm.rb
git commit -m "Update snm.rb to version ${{ github.ref_name }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
commit-message: "Update snm.rb to version ${{ github.ref_name }}"
title: "Update snm.rb to version ${{ github.ref_name }}"
body: "This PR updates snm.rb to version ${{ github.ref_name }}."
branch: update-snm-rb-${{ github.ref_name }}
base: main

0 comments on commit c28ceda

Please sign in to comment.