Skip to content

Commit

Permalink
Clone repository before setting up Python (#250)
Browse files Browse the repository at this point in the history
Since 70f167f the setup-python action restores a cache based on the
fingerprint of requirements.txt, therefore we must ensure a copy of that
file exists before we setup Python. This order of events requires the first
action to be checkout to clone the repository.

Signed-off-by: Joshua Lock <[email protected]>

Signed-off-by: Joshua Lock <[email protected]>
  • Loading branch information
joshuagl authored Sep 20, 2022
1 parent 7b565c7 commit beffcf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
name: Make and publish spec release
runs-on: ubuntu-latest
steps:
- name: Clone main
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5
with:
python-version: 3.x
cache: 'pip'

- name: Clone main
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
fetch-depth: 0

- name: Get previous version
id: prevver
run: |
Expand Down

0 comments on commit beffcf8

Please sign in to comment.