-
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (44 loc) · 1.15 KB
/
test_ape_version.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
name: Ape Version Test
on:
push:
branches: [main]
tags-ignore: ['**']
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}-version
cancel-in-progress: true
jobs:
run-this-action:
name: Run action (${{ matrix.version }})
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
version:
[
'default',
'0.6.11',
'==0.6.11',
'git+https://github.com/ApeWorX/ape.git@main',
]
steps:
- uses: actions/checkout@v3
- name: Check version pin
id: check-version
run: |
if [[ ${{ matrix.version }} == "default" ]]; then
echo "ape-version=''" >> $GITHUB_OUTPUT
else
echo "ape-version=${{ matrix.version }}" >> $GITHUB_OUTPUT
fi
- name: Run ape action
id: ape-action
uses: ./
with:
ape-version-pin: ${{ steps.check-version.outputs.ape-version }}
- run: ape --help
- name: Print outputs
run: |
echo "Output: ${{ steps.ape-action.outputs.ape-version }}"