Merge branch 'shiruken-main'
# Conflicts: # .github/workflows/get_context.yml
This commit is contained in:
commit
1e7aafa6b2
1 changed files with 10 additions and 9 deletions
19
.github/workflows/get_context.yml
vendored
19
.github/workflows/get_context.yml
vendored
|
@ -11,21 +11,22 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: mastodon
|
environment: mastodon
|
||||||
steps:
|
steps:
|
||||||
- name: Get latest release
|
- name: Checkout original repository
|
||||||
run: |
|
uses: actions/checkout@v3
|
||||||
curl --retry 20 -L -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/FediFetcher
|
||||||
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:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
cache: 'pip' # caching pip dependencies
|
cache: 'pip' # caching pip dependencies
|
||||||
- run: pip install -r requirements.txt
|
- run: pip install -r requirements.txt
|
||||||
- name: Download all workflow run artifacts
|
- name: Download all workflow run artifacts
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
workflow: get_context.yml
|
workflow: get_context.yml
|
||||||
if_no_artifact_found: warn
|
if_no_artifact_found: warn
|
||||||
|
@ -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: Checkout user's forked repository for keeping workflow alive
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Keep workflow alive
|
- name: Keep workflow alive
|
||||||
uses: gautamkrishnar/keepalive-workflow@v1
|
uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
|
|
Loading…
Reference in a new issue