steps: - uses: actions/checkout@v1 with: fetch-depth: 1 - name: dispatch event to another repositoryenv: GITHUB_TOKEN:${{ secrets.REPO_ACCESS_TOKEN }} EVENT: YOUR_EVENT_TYPE ORG: YOUR_ORG_NAME REPO: YOUR_TARGET_REPO_NAME run: | curl -d"{...
Checkout multiple repos (private) -name:Checkoutuses:actions/checkout@v4with:path:main-name:Checkout private toolsuses:actions/checkout@v4with:repository:my-org/my-private-toolstoken:${{ secrets.GH_PAT }}#`GH_PAT` is a secret that contains your PATpath:my-tools ...
Checkout HEAD^- uses: actions/checkout@v4 with: fetch-depth: 2 - run: git checkout HEAD^Checkout multiple repos (side by side)- name: Checkout uses: actions/checkout@v4 with: path: main - name: Checkout tools repo uses: actions/checkout@v4 with: repository: my-org/my-tools path...
jobs: example-job: runs-on: ubuntu-latest defaults: run: working-directory: ./scripts steps: - name: Check out the repository to the runner uses: actions/checkout@v4 - name: Run a script run: ./my-script.sh - name: Run another script run: ./my-other-script.sh 希望工作流作业运行的...
For a reusable workflow, the syntax is OWNER/REPOSITORY/PATH/FILENAME@TAG-OR-SHA. For example, octo-org/another-repo/.github/workflows/workflow.yml@v1. For more information, see Reusing workflows. You can use the * wildcard character to match patter...
jobs:example-job:runs-on:ubuntu-latestdefaults:run:working-directory:./scriptssteps:-name:Checkouttherepositorytotherunneruses:actions/checkout@v4-name:Runascriptrun:./my-script.sh-name:Runanotherscriptrun:./my-other-script.sh 希望工作流作业运行的任何脚本,都必须是可执行脚本。 可以在工作...
We suggest importing each part of your Subversion repository to a separate GitHub repository if:Collaborators need to check out or commit to that part of the project separately from the other parts You want different parts to have their own access permissions...
repository to perform custom tasks, or by using actions the GitHub community shares. Navigating through various actions, you'll notice that there are three different types of actions:Docker container actions,JavaScript actions, andcomposite run steps actions. Let's take a closer look at each ...
- uses: actions/checkout@v4 with: fetch-depth: 2 - run: git checkout HEAD^Checkout multiple repos (side by side)- name: Checkout uses: actions/checkout@v4 with: path: main - name: Checkout tools repo uses: actions/checkout@v4 with: repository: my-org/my-tools path: my-tools...
jobs:build-linux:runs-on:ubuntu-lateststeps: -uses:actions/checkout@v4-name:Cache Primesid:cache-primesuses:actions/cache@v4with:path:prime-numberskey:primes-name:Generate Prime Numbersif:steps.cache-primes.outputs.cache-hit != 'true'run:./generate-primes.sh -d prime-numbers-name:Cache Number...