-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
34 lines (29 loc) · 884 Bytes
/
action.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
name: 'BB Test Action'
description: 'Playground for actions'
inputs:
swift-format-version:
description: 'Swift Format tag version number'
required: false
default: "510.1.0"
runs:
using: 'composite'
steps:
- name: build swift-format
shell: bash
run: |
if [[ "$OSTYPE" == "linux-gnu"* ]]; then # if OS is linux
git config --global --add safe.directory $PWD
fi
git clone https://github.com/apple/swift-format.git
cd swift-format
git checkout "tags/${{inputs.swift-format-version}}"
swift build -c release
install .build/release/swift-format /usr/local/bin/swift-format
- name: run script
shell: bash
run: |
chmod -R oug+x ${GITHUB_ACTION_PATH}/run-swift-format.sh
${GITHUB_ACTION_PATH}/run-swift-format.sh
branding:
icon: 'server'
color: 'green'