mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-23 22:50:47 +00:00
chore: update all versions of actions/checkout
to v4
This commit is contained in:
parent
fd34b8dee2
commit
5b63dd500f
2 changed files with 4 additions and 4 deletions
4
.github/workflows/demo.yml
vendored
4
.github/workflows/demo.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Setup key
|
- name: Setup key
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -28,7 +28,7 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: apt update && apt install -y openssh-client git
|
- run: apt update && apt install -y openssh-client git
|
||||||
- name: Setup key
|
- name: Setup key
|
||||||
uses: ./
|
uses: ./
|
||||||
|
|
|
@ -27,7 +27,7 @@ GitHub Actions only have access to the repository they run for. So, in order to
|
||||||
* In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`.
|
* In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`.
|
||||||
* Put the contents of the *private* SSH key file into the contents field. <br>
|
* Put the contents of the *private* SSH key file into the contents field. <br>
|
||||||
* This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`.
|
* This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`.
|
||||||
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v2` line.
|
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v4` line.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# .github/workflows/my-workflow.yml
|
# .github/workflows/my-workflow.yml
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
my_job:
|
my_job:
|
||||||
...
|
...
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
# Make sure the @v0.8.0 matches the current version of the action
|
# Make sure the @v0.8.0 matches the current version of the action
|
||||||
- uses: webfactory/ssh-agent@v0.8.0
|
- uses: webfactory/ssh-agent@v0.8.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue