From 9e18a47007bb7207794ed24d7987552dbe5e5693 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 9 Mar 2023 09:54:28 +0000 Subject: [PATCH 1/2] try this in a different way --- .github/workflows/get_context.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/get_context.yml b/.github/workflows/get_context.yml index b9b4356..a3376ce 100644 --- a/.github/workflows/get_context.yml +++ b/.github/workflows/get_context.yml @@ -11,7 +11,10 @@ jobs: runs-on: ubuntu-latest environment: mastodon steps: - - uses: actions/checkout@v3 + - 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 - uses: actions/setup-python@v4 with: python-version: '3.10' From be8fef9058b22063e3ed72f964634e1f22e98ff7 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 9 Mar 2023 09:57:58 +0000 Subject: [PATCH 2/2] Add some output --- .github/workflows/get_context.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get_context.yml b/.github/workflows/get_context.yml index a3376ce..5c3f2b5 100644 --- a/.github/workflows/get_context.yml +++ b/.github/workflows/get_context.yml @@ -11,11 +11,14 @@ jobs: runs-on: ubuntu-latest environment: mastodon steps: - - run: | + - name: Get latest release + 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 - - uses: actions/setup-python@v4 + ls -lR + - name: Set up Python + uses: actions/setup-python@v4 with: python-version: '3.10' cache: 'pip' # caching pip dependencies @@ -27,6 +30,8 @@ jobs: workflow: get_context.yml if_no_artifact_found: warn 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 }} - name: Upload artifacts uses: actions/upload-artifact@v3