This action will download job-level logs for the GitHub Action Workflow. The action will only download logs for the past 24 hours by default.
on: [push]
jobs:
logs-download:
name: Download GH action logs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.1
- name: Download 24hrs Old Logs
uses: pawanbahuguna/action-logs/@v2.0.0
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/checkout@v4.2.1
- name: Download Logs
uses: pawanbahuguna/action-logs/@v2.0.0
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/checkout@v4.2.1
- name: Download Logs
uses: pawanbahuguna/action-logs/@v2.0.0
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, contents (code), and metadata
This project is distributed under the MIT license.