This action will download job-level logs for the GitHub Action Workflow. By default, the action will only download logs for the past 24 hours.
on: [push]
jobs:
logs-download:
name: Download GH action logs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Download 24hrs Old Logs
uses: pawanbahuguna/action-logs/@v1.0.1
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
on: [push]
jobs:
logs-download:
name: Download GH action logs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Download Logs
uses: pawanbahuguna/action-logs/@v1.0.1
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
ONLY_24: false # Default is true [Optional]
LOGS_DIR: <Directory name> # Default is jobs-log [Optional]
on:
schedule:
- cron: '15 00 * * *'
jobs:
logs-download:
name: Download GH action logs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Download Logs
uses: pawanbahuguna/action-logs/@v1.0.1
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
ONLY_24: false # Default is true [Optional]
LOGS_DIR: <Directory name> # Default is jobs-log [Optional]
Generate fine-grained token for the repo with Read access to actions, code, and metadata
This project is distributed under the MIT license.