generated from DenoPlayground/Template-Action
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1022 Bytes
/
test_action.yml
File metadata and controls
38 lines (30 loc) · 1022 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
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'Test Action'
on:
push: {}
workflow_dispatch: {}
permissions:
contents: write
checks: write
jobs:
test-action:
name: 'Test Action'
runs-on: ubuntu-24.04
steps:
- name: 'Setup Repository (${{ github.event.repository.name }})'
uses: actions/checkout@v4
- name: 'Run Action'
id: test
uses: './'
with:
icon: 'tag'
label-text: 'Label-123'
state-text: 'State-123'
- name: 'Write summary'
run: |
echo '# Generated Badge' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo 'Open badge in new tab:' >> $GITHUB_STEP_SUMMARY
echo -e '```url\ndata:image/svg+xml;utf8,${{ steps.test.outputs.svg-text-encoded }}\n```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo -e '```svg\n${{ steps.test.outputs.svg-text }}\n```' >> $GITHUB_STEP_SUMMARY