Merge pull request #4 from nanos/with_download
Download latest release of get_replies.py on run
This commit is contained in:
commit
3ad35ed1ec
1 changed files with 10 additions and 2 deletions
12
.github/workflows/get_context.yml
vendored
12
.github/workflows/get_context.yml
vendored
|
@ -11,8 +11,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: mastodon
|
environment: mastodon
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Get latest release
|
||||||
- uses: actions/setup-python@v4
|
run: |
|
||||||
|
curl -s https://api.github.com/repos/nanos/mastodon_get_replies/releases/latest | jq .zipball_url | xargs wget -O download.zip
|
||||||
|
unzip -j download.zip
|
||||||
|
mkdir artifacts
|
||||||
|
ls -lR
|
||||||
|
- name: Set up Python
|
||||||
|
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
|
||||||
|
@ -24,6 +30,8 @@ jobs:
|
||||||
workflow: get_context.yml
|
workflow: get_context.yml
|
||||||
if_no_artifact_found: warn
|
if_no_artifact_found: warn
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
- name: Get Directory structure
|
||||||
|
run: ls -lR
|
||||||
- run: python get_context.py ${{ secrets.ACCESS_TOKEN }} ${{ vars.MASTODON_SERVER }} ${{ vars.REPLY_INTERVAL_IN_HOURS }} ${{ vars.HOME_TIMELINE_LENGTH }}
|
- run: python get_context.py ${{ secrets.ACCESS_TOKEN }} ${{ vars.MASTODON_SERVER }} ${{ vars.REPLY_INTERVAL_IN_HOURS }} ${{ vars.HOME_TIMELINE_LENGTH }}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in a new issue