Skip to content

Commit e1cc751

Browse files
authored
repo sync
2 parents 05c3952 + d9139cb commit e1cc751

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

content/actions/learn-github-actions/essential-features-of-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
expr 1 + 1 > output.log
7777
- name: Upload output file
78-
uses: actions/upload-artifact@v1
78+
uses: actions/upload-artifact@v2
7979
with:
8080
name: output-log-file
8181
path: output.log

content/actions/reference/workflow-syntax-for-github-actions.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,27 @@ jobs:
638638
uses: docker://gcr.io/cloud-builders/gradle
639639
```
640640

641+
#### Example using action inside a different private repository than the workflow
642+
643+
Your workflow must checkout the private repository and reference the action locally.
644+
645+
{% raw %}
646+
```yaml
647+
jobs:
648+
my_first_job:
649+
steps:
650+
- name: Check out repository
651+
uses: actions/checkout@v2
652+
with:
653+
repository: octocat/my-private-repo
654+
ref: v1.0
655+
token: ${{ secrets.GITHUB_TOKEN }}
656+
path: ./.github/actions/my-private-repo
657+
- name: Run my action
658+
uses: ./.github/actions/my-private-repo/my-action
659+
```
660+
{% endraw %}
661+
641662
### `jobs.<job_id>.steps[*].run`
642663

643664
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.

content/github/using-git/updating-credentials-from-the-macos-keychain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protocol=https
3131
> <em>[Press Return]</em>
3232
```
3333

34-
If it's successful, nothing will print out. To test that it works, try and clone a repository from {% data variables.product.product_location %}. If you are prompted for a password, the keychain entry was deleted.
34+
If it's successful, nothing will print out. To test that it works, try and clone a private repository from {% data variables.product.product_location %}. If you are prompted for a password, the keychain entry was deleted.
3535

3636
### Further reading
3737

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
When you use expressions in an `if` conditional, you may omit the expression syntax ({% raw %}`${{ }}`{% endraw %}) because {% data variables.product.prodname_dotcom %} automatically evaluates the `if` conditional as an expression.
1+
When you use expressions in an `if` conditional, you may omit the expression syntax ({% raw %}`${{ }}`{% endraw %}) because {% data variables.product.prodname_dotcom %} automatically evaluates the `if` conditional as an expression, unless the expression contains any operators. If the expression contains any operators, the expression must be contained within {% raw %}`${{ }}`{% endraw %} to explicitly mark it for evaluation.

lib/redirects/external-sites.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"/git-scm": "https://git-scm.com/",
1515
"/git-user-manual": "http://schacon.github.com/git/user-manual.html",
1616
"/github-status": "https://status.github.com/messages",
17-
"/github-support": "https://support.github.com/contact",
17+
"/github-support": "https://support.github.com",
1818
"/multiple-keys": "https://developer.github.com/guides/managing-deploy-keys",
1919
"/pro-git": "https://git-scm.com/book",
2020
"/submodules": "https://git-scm.com/book/en/Git-Tools-Submodules",

0 commit comments

Comments
 (0)