Skip to content

Commit

Permalink
fix SHAs again
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 21, 2022
1 parent 2650838 commit ea20a33
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions content/docs/cml-with-dvc.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Train model
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -166,7 +166,7 @@ Windows, Python 3 should be setup first.
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: iterative/setup-dvc@v1
```

Expand All @@ -178,7 +178,7 @@ runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/setup-python@v4
with:
python-version: '3.x'
Expand Down
6 changes: 3 additions & 3 deletions content/docs/self-hosted-runners.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Deploy runner on EC2
env:
REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand All @@ -74,7 +74,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Train model
env:
REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand Down Expand Up @@ -285,7 +285,7 @@ steps:
app-id: ${{ secrets.CML_GITHUB_APP_ID }}
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
token: ${{ steps.get-token.outputs.token }}
- name: Train model
env:
Expand Down
4 changes: 2 additions & 2 deletions content/docs/start/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ cd example_cml
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Train model
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Train model
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion content/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Train model
run: |
# Your ML workflow goes here
Expand Down
8 changes: 4 additions & 4 deletions src/components/pages/Home/UseCasesSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const UseCasesSection: React.ForwardRefRenderFunction<HTMLElement> = () => (
<div> <span>steps:</span></div>
<div> <span>- uses: actions/checkout@v3</span></div>
<div> <span>with:</span></div>
<div> <span>ref: {"${{ github.head_ref || github.ref_name }}"}</span></div>
<div> <span>ref: {"${{ github.event.pull_request.head.sha || github.sha }}"}</span></div>
<div> <span>- run: |</span></div>
<Tooltip type="dependencies">
<div> <span>pip install -r requirements.txt</span></div>
Expand Down Expand Up @@ -186,7 +186,7 @@ const UseCasesSection: React.ForwardRefRenderFunction<HTMLElement> = () => (
<div> <span>steps:</span></div>
<div> <span>- uses: actions/checkout@v3</span></div>
<div> <span>with:</span></div>
<div> <span>ref: {"${{ github.head_ref || github.ref_name }}"}</span></div>
<div> <span>ref: {"${{ github.event.pull_request.head.sha || github.sha }}"}</span></div>
<div> <span>- uses: actions/setup-python@v4</span></div>
<div> <span>with:</span></div>
<div> <span>python-version: &apos;3.x&apos;</span></div>
Expand Down Expand Up @@ -385,7 +385,7 @@ const UseCasesSection: React.ForwardRefRenderFunction<HTMLElement> = () => (
<div> <span>steps:</span></div>
<div> <span>- uses: actions/checkout@v3</span></div>
<div> <span>with:</span></div>
<div> <span>ref: {"${{ github.head_ref || github.ref_name }}"}</span></div>
<div> <span>ref: {"${{ github.event.pull_request.head.sha || github.sha }}"}</span></div>
<div> <span>- name: Train model</span></div>
<div> <span>run: |</span></div>
<Tooltip type="dependencies">
Expand Down Expand Up @@ -506,7 +506,7 @@ const UseCasesSection: React.ForwardRefRenderFunction<HTMLElement> = () => (
<div> <span>steps:</span></div>
<div> <span>- uses: actions/checkout@v3</span></div>
<div> <span>with:</span></div>
<div> <span>ref: {"${{ github.head_ref || github.ref_name }}"}</span></div>
<div> <span>ref: {"${{ github.event.pull_request.head.sha || github.sha }}"}</span></div>
<div> <span>- name: Train model</span></div>
<div> <span>run: |</span></div>
<Tooltip type="dvc">
Expand Down

0 comments on commit ea20a33

Please sign in to comment.