-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (61 loc) · 1.82 KB
/
actions.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: actions
on:
push:
paths-ignore:
- README.md
- LICENSE.md
- 'docs/**'
- '.github/dependabot.yaml'
- '.gitignore'
branches:
- root
pull_request:
paths-ignore:
- README.md
- LICENSE.md
- 'docs/**'
- '.github/dependabot.yaml'
- '.gitignore'
workflow_dispatch:
jobs:
actions:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
name: actions
runs-on: ${{ matrix.os }}
defaults:
run:
shell: pwsh
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- run: Get-ChildItem -Force
- name: Run action
uses: ./
id: jjversion
- name: Display jjversion outputs
run: |
echo "Major: ${{ steps.jjversion.outputs.major }}"
echo "Minor: ${{ steps.jjversion.outputs.minor }}"
echo "Patch: ${{ steps.jjversion.outputs.patch }}"
echo "MajorMinorPatch: ${{ steps.jjversion.outputs.majorMinorPatch }}"
echo "Sha: ${{ steps.jjversion.outputs.sha }}"
echo "ShortSha: ${{ steps.jjversion.outputs.shortSha }}"
- run: Get-ChildItem -Name
- name: Run action specifying version
uses: ./
id: jjversion2
with:
version: v0.3.46
- name: Display jjversion outputs
run: |
echo "Major: ${{ steps.jjversion2.outputs.major }}"
echo "Minor: ${{ steps.jjversion2.outputs.minor }}"
echo "Patch: ${{ steps.jjversion2.outputs.patch }}"
echo "MajorMinorPatch: ${{ steps.jjversion2.outputs.majorMinorPatch }}"
echo "Sha: ${{ steps.jjversion2.outputs.sha }}"
echo "ShortSha: ${{ steps.jjversion2.outputs.shortSha }}"