diff --git a/.github/workflows/68-ostypes.yml b/.github/workflows/68-ostypes.yml new file mode 100644 index 0000000000..014301b971 --- /dev/null +++ b/.github/workflows/68-ostypes.yml @@ -0,0 +1,15 @@ +name: 68 - OS TYPES + +on: + workflow_dispatch: + +jobs: + test-ostype: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - run: | + echo $OSTYPE + shell: bash \ No newline at end of file diff --git a/README.md b/README.md index a40f98ae6f..1c7a6787af 100644 --- a/README.md +++ b/README.md @@ -306,3 +306,7 @@ This workflow illustrates how to manipulate matrix object to perform different o [![67 - From JSON Env Var](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/67-fromjson-env-var.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/67-fromjson-env-var.yml) This workflow illustrates how to extract a specific item from a JSON list stored in a environment variable dynamically. + +[![68 - OS Types](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/68-ostypes.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/68-ostypes.yml) + +This workflow shows the os type value for each github runner os.