-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
25 lines (22 loc) · 690 Bytes
/
action.yml
File metadata and controls
25 lines (22 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: 'Write file to step summary'
author: 'Pete Sramek'
description: 'Writes file contents to step summary.'
inputs:
# Required
file-glob-pattern:
description: 'Search pattern for files to write.'
required: true
# Optional
working-directory:
description: 'Working directory to search for file.'
required: false
default: ${{ github.workspace }}
runs:
using: composite
steps:
- name: 'Checkout ${{ github.head_ref || github.ref }}'
uses: actions/checkout@v5
- name: Writing ${{ inputs.file }} to step summary
shell: bash
run: cat ${{ inputs.file }} >> $GITHUB_STEP_SUMMARY
working-directory: ${{ inputs.working-directory }}