最近在做Github Action相关的项目时候有个需求,有两个Github Repositories, 其中一个作为另外一个的submodule。 想要在submodule 有push 提交操作的时候,自动触发其workflow。 当然最后根据本文解决了之后发现,即便没有submodule的关系,两个仓库之间依然可以trigger 调用workflow。 但是这里还是把这
dst_wikiOptionalSet totrueif the destination repository you want to copy from is the GitHub Wiki.false commit_messageOptionalA custom git commit message. usernameOptionalThe GitHub username to associate commits made by this GitHub action.GITHUB_ACTOR ...
One way to use this is if you want to force push to a branch of your repo: you'll need to set thepushinput to, for example,origin yourBranch --force. If you want the action to commit in a new branch, you can use thenew_branchinput. ...
jobs: my_first_job: steps: - name: Check out repository uses: actions/checkout@v4 with: repository: octocat/my-private-repo ref: v1.0 token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} path: ./.github/actions/my-private-repo - name: Run my action uses: ./.github/actions/my-private...
Allow specified actions and reusable workflows:You can restrict workflows to use actions and reusable workflows in specific organizations and repositories. Specified actions cannot be set to more than 1000. To restrict access to specific tags or commit SHAs of an action or ...
repository: ${{ env.THEME_REPO }} ref: ${{ env.THEME_BRANCH }} path: node_modules/hexo-theme-butterfly - name: 安装 Node uses: actions/setup-node@v3 with: node-version: "20.x" #action使用的node版本,建议大版本和本地保持一致。可以在本地用node -v查询版本号。
Now that you have the repo on your local machine you can make the changes that you want to make, commit them to your repo and then issue a pull request to the original source. Keeping your copy in sync So, it’s maybe been a few days or weeks, since you made your initial fork/cl...
The following example renames the "action" field to "jelly": db.collection("test").insert({ _id: "23231", action: "Foo" }); db.collection("test").update({ _id: "23231" }, { $rename: { action: "jelly" } }); JSON.stringify(db.collection("test").find()); Result: [{ _id...
Import ActionSubversionMercurialTFVCGit Authenticate with remote repository X X X X Update commit author attribution X X X Move large files to Git Large File Storage X X X Remove large files from your repository X X X Importing a repository with GitHub Importer If you have a project hoste...
the changes you made (files) listed on the left panel. On the bottom left, provide a summary/name for your commit. This will help us identify what are you proposing in this change. Click the Commit to main button. Now you will see an option to Push this change to you...