Simplify checking out latest release
This commit is contained in:
parent
b1a382c55a
commit
0c73962fb4
1 changed files with 11 additions and 10 deletions
17
.github/workflows/get_context.yml
vendored
17
.github/workflows/get_context.yml
vendored
|
@ -11,12 +11,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: mastodon
|
environment: mastodon
|
||||||
steps:
|
steps:
|
||||||
- name: Get latest release
|
- name: Checkout repository
|
||||||
run: |
|
uses: actions/checkout@v3
|
||||||
curl --retry 20 -s https://api.github.com/repos/nanos/mastodon_get_replies/releases/latest | jq .zipball_url | xargs wget -O download.zip
|
with:
|
||||||
unzip -j download.zip
|
repository: nanos/mastodon_get_replies
|
||||||
mkdir artifacts
|
fetch-depth: 0
|
||||||
ls -lR
|
- name: Checkout latest release tag
|
||||||
|
run: git checkout $(git describe --tags)
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -39,7 +40,7 @@ jobs:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
path: |
|
path: |
|
||||||
artifacts
|
artifacts
|
||||||
- name: Check out, so that we can keep the workflow alive
|
- name: Swap back to main branch for keeping workflow alive
|
||||||
uses: actions/checkout@v3
|
run: git checkout main
|
||||||
- name: Keep workflow alive
|
- name: Keep workflow alive
|
||||||
uses: gautamkrishnar/keepalive-workflow@v1
|
uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
|
|
Loading…
Reference in a new issue