当推动在Action

问题描述 投票:0回答:0
我有一个名为live n命名的GITHUB操作工作流,该措施live live live live light(github中的repo的默认分支),并定期更新其他几个分支,其中包括一个名为

update_branches(澄清:github-base

是在分支本身的名称中,不是遥控名称)。
我有一个
workflow
在推动分支时定义为运行:
github/akpm-mm/mm-stable
当我推向我自己时,工作流程起作用,但是当分支被
github

工作流推动时,它不会运行。 this this this this ongithub

表示,当推动通过

github/akpm-mm/mm-stable
发生❯❯ git checkout origin/github/akpm-mm/mm-stable ❯❯ head .github/workflows/test.yaml on: push: branches: - github/linus/master - github/akpm-mm/mm-stable - github/akpm-mm/mm-unstable 时,故意禁用触发其他动作的动作,因此我已经设置了一个个人访问令牌(PAT),并配置了

test
代币在推动时使用它:

github/akpm-mm/mm-stable

I在
logs
中证实了
update_branches
使用我配置的PAT(至少我看到github重新策划了PAT秘密)。我确认了通过在本地获取

GITHUB_TOKEN

时发生的推动,我可以看到一个新的提交。但是,update_branches工作流没有触发。

我在这里错过了什么?
	

电流解决方案

至少,我看到一个*** github编辑了patsecret

它还将编辑给该操作的默认GitHub令牌,而不仅仅是PAT,因此您可能会使用提供的gitken。在类似的问题中,this答案告诉您通过
- name: Configure git run: | set -eux # Note - GitHub redacts secrets in logs so -x is not _that_ sketchy git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/bjackman/linux.git - name: Update branches # This will push the brances to `origin` run: .github/scripts/update_branches.sh
动作指定您的PAT令牌(这就是操作/结帐
Here的建议):
update_branches.sh

github github-actions
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.