You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
echo "src-git passwall2 https://github.com/${{ env.passwall2 }}.git;main" >> feeds.conf 这里应该有问题吧。 使用main分支可能和xiaorouji/openwrt-passwall2的tag的代码会不一致吧。
应该使用:
echo "src-git passwall2 https://github.com/${{ env.passwall2 }}.git;${{ needs.job_check.outputs.passwall2_version }}" >> feeds.conf
会不会更好。
或者更安全的使用commit hash:
- name: Get commit hash for tag
id: get_commit
run: |
COMMIT_HASH=$(git ls-remote https://github.com/${{ env.passwall2 }}.git refs/tags/${{ needs.job_check.outputs.passwall2_version }} | cut -f1)
echo "commit_hash=$COMMIT_HASH" >> $GITHUB_OUTPUT
在 feeds 中使用 commit hash
echo "src-git passwall2 https://github.com/${{ env.passwall2 }}.git;${{ steps.get_commit.outputs.commit_hash }}" >> feeds.conf
但是cache部分要修改:
- name: Update passwall2 feeds
if: steps.cache-sdk.outputs.cache-hit == 'true'
run: |
cd sdk
# 修复分支引用
sed -i "s|;main|;${{ needs.job_check.outputs.passwall2_version }}|" feeds.conf
./scripts/feeds update passwall_packages
./scripts/feeds update passwall2
./scripts/feeds install luci-app-passwall2
Beta Was this translation helpful? Give feedback.
All reactions