最近在做Github Action相关的项目时候有个需求,有两个Github Repositories, 其中一个作为另外一个的submodule。 想要在submodule 有push 提交操作的时候,自动触发其workflow。 当然最后根据本文解决了之后发现,即便没有submodule的关系,两个仓库之间依然可以trigger 调用workflow。 但是这里还是把这两个仓库姑且叫做ChildRepo...
on on.<event_name>.types on.<pull_request|pull_request_target>.<branches|branches-ignore> on.push.<branches|tags|branches-ignore|tags-ignore> on.<push|pull_request|pull_request_target>.<paths|paths-ignore> on.schedule on.workflow_call on.workflow_call.inputs on.workflow_call.inputs....
Another action we could take is to add a label to the pull request. In this case, we use thepullreminders/label-when-approved-actionaction. yml steps:- name:Labelwhenapproveduses:pullreminders/label-when-approved-action@mainenv:APPROVALS:"1"GITHUB_TOKEN:${{secrets.GITHUB_TOKEN}}ADD_LABEL:...
A job is a set of steps in a workflow that is executed on the same runner. Each step is either a shell script that will be executed, or an action that will be run. Steps are executed in order and are dependent on each other. Since each step is executed on the same runner, yo...
Keep in mind that actions that run later in a workflow can use the output data that was declared in a previously run action.The following example is a simple output to declare the average grade of the students:yml Copy outputs: average: description: 'The average grade of the students' ...
Dependabot Automated dependency updates for Ruby, JavaScript, Python, PHP, Elixir, Rust, Java (Maven and Gradle), .NET, Go, Elm, Docker, Terraform, Git Submodules, and GitHub Actions. DJ Checkup— Scan your Django site for security flaws with this free, automated checkup tool. Forked fro...
For example, you can run a workflow when a branch protection rule has been created or deleted:on: branch_protection_rule: types: [created, deleted] check_runWebhook event payloadActivity typesGITHUB_SHAGITHUB_REF check_run - created- rerequested- completed- requested_action Last commit on ...
Example cache workflow Restoring and saving cache using a single action name:Caching Primeson:pushjobs:build:runs-on:ubuntu-lateststeps: -uses:actions/checkout@v4-name:Cache Primesid:cache-primesuses:actions/cache@v4with:path:prime-numberskey:${{ runner.os }}-primes-name:Generate Prime Numbers...
Repository writers and maintainers can only see secret scanning alert information for their own commits. Repository actionReadTriageWriteMaintainAdmin Further reading Managing user access to your organization's repositories Adding outside collaborators to repositories in your organization...
I based a Github Action on your check_pr branch so basically the logic to trigger the CI for a external PR is now in the GitHub side. This has some advantages since I think Github manages the Secrets a bit better at this moment. For other interested in the solution: The PR: https:/...