File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow triggers when a new release has been made.
2+
3+ name : OCI CLI Installation Testing
4+
5+ # Controls when the action will run.
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the main branch
8+ release :
9+ types : [released]
10+
11+ # Allows you to run this workflow manually from the Actions tab.
12+ workflow_dispatch :
13+ inputs :
14+ release :
15+ description : ' Release version number ("latest" or "v1.35.0")'
16+ required : true
17+ default : latest
18+
19+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+ jobs :
21+ # This workflow contains a single job called "build"
22+ build :
23+ # NOTE: If this runs in an environment, set this value (where "MC-Action" is the environment name)
24+ # environment: MC-Action
25+
26+ # The type of runner that the job will run on
27+ runs-on : macos-11
28+ steps :
29+ - name : Get Latest Release with Tag
30+ id : latestrelease
31+ run : |
32+ echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/oracle/oci-cli/releases/latest | jq '.tag_name' | sed 's/\"//g')"
33+ - name : Confirm Release Tag
34+ run : |
35+ echo ${{ steps.latestrelease.outputs.releasetag }}
36+ - name : Tag Checkout
37+ uses : actions/checkout@v2
38+ with :
39+ ref : ${{ steps.latestrelease.outputs.releasetag }}
40+ - name : Run MacOS Installation Tests
41+ run : ./scripts/github_actions/mac_installation_tests.sh
You can’t perform that action at this time.
0 commit comments