Skip to content

Commit

Permalink
Update workflows to include workflow-dispatch trigger (#12)
Browse files Browse the repository at this point in the history
* Update workflows to include workflow-dispatch trigger

* fix tests
  • Loading branch information
maxim-lobanov authored Apr 2, 2021
1 parent 6a84289 commit 00b44a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: 0 0 * * *

Expand All @@ -18,10 +19,10 @@ jobs:
- name: setup-xamarin
uses: ./
with:
mono-version: 6.6
xamarin-ios-version: 14.0
xamarin-mac-version: 6.6
xamarin-android-version: 10.1
mono-version: '6.6'
xamarin-ios-version: '14.0'
xamarin-mac-version: '6.6'
xamarin-android-version: '10.1'

- name: Validate versions
run: pwsh ./__tests__/validate-xamarin-versions.ps1 "6.6" "14.0" "6.6" "10.1"
Expand Down Expand Up @@ -67,10 +68,10 @@ jobs:
- name: setup-xamarin
uses: ./
with:
xcode-version: 11.4
xcode-version: 12.3

- name: Validate versions
run: pwsh ./__tests__/validate-xcode-version.ps1 -XcodeVersion "11.4"
run: pwsh ./__tests__/validate-xcode-version.ps1 -XcodeVersion "12.3"

xcode-wildcard-version:
name: xcode - wildcard version
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: 0 0 * * *

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This action is intended to switch between pre-installed versions of Xamarin and

- `mono-version`, `xamarin-ios-version`, `xamarin-mac-version`, `xamarin-android-version` parameters support the following format: `latest`, `13`, `13.2`, `13.2.1.4`
- `xcode-version` parameter supports the following format: `latest`, `11.4`, `11.x`, `11.2.1`
**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.

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

# License
Expand Down

0 comments on commit 00b44a3

Please sign in to comment.