Skip to content

Commit 7281bd2

Browse files
committed
Make action skeleton
1 parent 3c36926 commit 7281bd2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

action.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Swift propose next version"
2+
description: "Run action to receive next version proposition for your Swift package in plain semver format."
3+
author: "Filozoff"
4+
inputs:
5+
derived-data-path:
6+
description: "Derived data path (optional). Default: './.build'."
7+
default: "./.build"
8+
device:
9+
description: "Device for which public interface is created. Use value supported by '-destination' argument in 'xcodebuild archive', e.g. 'platform=iOS Simulator,name=iPhone 14,OS=17.0'."
10+
required: true
11+
scheme:
12+
description: "Package scheme name to analyze. To analyze whole package with multiple targets add '-Package' suffix."
13+
required: true
14+
outputs:
15+
proposed-next-version:
16+
description: "A proposed next version in semver format."
17+
value: ${{ steps.propose-next-version.outputs.version }}
18+
runs:
19+
using: "composite"
20+
steps:
21+
- name: Check runner OS
22+
if: ${{ runner.os != 'macOS' }}
23+
shell: bash
24+
run: |
25+
echo "::error title=⛔ Unsupported OS::Action supports macOS only."
26+
exit 1
27+
28+
- name: Check inputs
29+
if: ${{ inputs.device == '' || inputs.scheme == '' }}
30+
shell: bash
31+
run: |
32+
echo "::error title=⛔ Missing inputs::'device' or 'scheme' input is not set."
33+
exit 1
34+
35+
- name: Propose next version
36+
id: propose-next-version
37+
shell: bash
38+
run: |
39+
echo "version=0.0.1" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)