name: 'Take core dump files'
description: 'List down and upload core dumps as artifacts'
runs:
  using: "composite"
  steps:
    - name: List down core dump files 
      run: |
        ls -lah /cores/
        sudo chmod -R +rwx /cores/*
      shell: sh
      
    - name: Backup core dump 
      uses: actions/upload-artifact@v4
      with:
        name: core-dump
        path: /cores/*
