Skip to content

Commit 00b44a3

Browse files
Update workflows to include workflow-dispatch trigger (#12)
* Update workflows to include workflow-dispatch trigger * fix tests
1 parent 6a84289 commit 00b44a3

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/test.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- master
66
pull_request:
7+
workflow_dispatch:
78
schedule:
89
- cron: 0 0 * * *
910

@@ -18,10 +19,10 @@ jobs:
1819
- name: setup-xamarin
1920
uses: ./
2021
with:
21-
mono-version: 6.6
22-
xamarin-ios-version: 14.0
23-
xamarin-mac-version: 6.6
24-
xamarin-android-version: 10.1
22+
mono-version: '6.6'
23+
xamarin-ios-version: '14.0'
24+
xamarin-mac-version: '6.6'
25+
xamarin-android-version: '10.1'
2526

2627
- name: Validate versions
2728
run: pwsh ./__tests__/validate-xamarin-versions.ps1 "6.6" "14.0" "6.6" "10.1"
@@ -67,10 +68,10 @@ jobs:
6768
- name: setup-xamarin
6869
uses: ./
6970
with:
70-
xcode-version: 11.4
71+
xcode-version: 12.3
7172

7273
- name: Validate versions
73-
run: pwsh ./__tests__/validate-xcode-version.ps1 -XcodeVersion "11.4"
74+
run: pwsh ./__tests__/validate-xcode-version.ps1 -XcodeVersion "12.3"
7475

7576
xcode-wildcard-version:
7677
name: xcode - wildcard version

.github/workflows/workflow.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- master
66
pull_request:
7+
workflow_dispatch:
78
schedule:
89
- cron: 0 0 * * *
910

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This action is intended to switch between pre-installed versions of Xamarin and
1212

1313
- `mono-version`, `xamarin-ios-version`, `xamarin-mac-version`, `xamarin-android-version` parameters support the following format: `latest`, `13`, `13.2`, `13.2.1.4`
1414
- `xcode-version` parameter supports the following format: `latest`, `11.4`, `11.x`, `11.2.1`
15+
**Note:** If you need to switch Xcode only without Xamarin - please consider using [maxim-lobanov/setup-xcode](https://github.com/maxim-lobanov/setup-xcode) actions since it provides more comfortable way to specify Xcode.
1516

1617
# Usage
1718
```
@@ -25,11 +26,11 @@ jobs:
2526
- name: setup-xamarin
2627
uses: maxim-lobanov/setup-xamarin@v1
2728
with:
28-
mono-version: 6.6 # specify version in '<major>.<minor>' format
29-
xamarin-ios-version: 13 # specify version in '<major>' format
29+
mono-version: '6.6' # specify version in '<major>.<minor>' format
30+
xamarin-ios-version: '13' # specify version in '<major>' format
3031
xamarin-mac-version: latest # specify 'latest' keyword to pick up the latest available version
31-
xamarin-android-version: 10.1.3.7 # specify full version; it is not recomended option because your pipeline can be broken suddenly in future
32-
xcode-version: 11.x # set the latest available Xcode 11
32+
xamarin-android-version: '10.1.3.7' # specify full version; it is not recomended option because your pipeline can be broken suddenly in future
33+
xcode-version: '11.x' # set the latest available Xcode 11
3334
```
3435

3536
# License

0 commit comments

Comments
 (0)