From ef689408609f860ab6584980713594db0b19c33f Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Tue, 19 Sep 2023 17:15:52 -0300 Subject: [PATCH] add 68 os types Signed-off-by: Guillaume Falourd --- .github/workflows/68-ostypes.yml | 15 +++++++++++++++ README.md | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/68-ostypes.yml 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.