Merge pull request #94 from nanos/node-16-depracation

Update some actions to use Node 20, now that Node 16 is deprecated
This commit is contained in:
Michael 2024-02-02 07:05:45 +00:00 committed by GitHub
commit e4fca0d67e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,17 +12,17 @@ jobs:
environment: mastodon
steps:
- name: Checkout original repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: Download all workflow run artifacts
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
name: artifacts
workflow: get_context.yml
@ -32,12 +32,12 @@ jobs:
run: ls -lR
- run: python find_posts.py --lock-hours=0 --access-token=${{ secrets.ACCESS_TOKEN }} -c="./config.json"
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
artifacts
- name: Checkout user's forked repository for keeping workflow alive
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Keep workflow alive
uses: gautamkrishnar/keepalive-workflow@v1