-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.18 KB
/
test_custom_action_itself.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI # Continuous Integration
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test_custom_action_itself:
name: Test Custom Action on ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Create input file
run: echo "This is the original file content." > input.txt
- name: Run Comprehensive Action
id: my_action
uses: ./
- name: Display outputs
run: |
echo "processed_text: ${{ steps.my_action.outputs.processed_text }}"
echo "word_count: ${{ steps.my_action.outputs.word_count }}"
echo "sum: ${{ steps.my_action.outputs.sum }}"
echo "average: ${{ steps.my_action.outputs.average }}"
echo "response_field: ${{ steps.my_action.outputs.response_field }}"
- name: Display modified file content
run: cat output.txt