1
0
mirror of synced 2026-01-09 06:03:09 -05:00

Merge branch 'main' into patch-1

This commit is contained in:
Rachael Sewell
2021-03-04 10:23:26 -08:00
committed by GitHub
2 changed files with 22 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ jobs:
run: |
expr 1 + 1 > output.log
- name: Upload output file
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: output-log-file
path: output.log

View File

@@ -638,6 +638,27 @@ jobs:
uses: docker://gcr.io/cloud-builders/gradle
```
#### Example using action inside a different private repository than the workflow
Your workflow must checkout the private repository and reference the action locally.
{% raw %}
```yaml
jobs:
my_first_job:
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
repository: octocat/my-private-repo
ref: v1.0
token: ${{ secrets.GITHUB_TOKEN }}
path: ./.github/actions/my-private-repo
- name: Run my action
uses: ./.github/actions/my-private-repo/my-action
```
{% endraw %}
### `jobs.<job_id>.steps[*].run`
Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.