From 9e78d8f57c5c3bc21b3bca78cb3698d48ead325d Mon Sep 17 00:00:00 2001 From: GuillaumeFalourd Date: Mon, 18 Sep 2023 06:23:10 +0000 Subject: [PATCH 1/4] Update file(s) "/." from "GuillaumeFalourd/useful-actions" --- backup/checkout-workflow.txt | 2 +- backup/pull-request-workflow.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/checkout-workflow.txt b/backup/checkout-workflow.txt index bef0981e80..8da89f601c 100644 --- a/backup/checkout-workflow.txt +++ b/backup/checkout-workflow.txt @@ -1 +1 @@ -Fri Sep 15 01:10:44 UTC 2023 +Mon Sep 18 01:10:12 UTC 2023 diff --git a/backup/pull-request-workflow.txt b/backup/pull-request-workflow.txt index c0f2e4e1d6..c702aebd66 100644 --- a/backup/pull-request-workflow.txt +++ b/backup/pull-request-workflow.txt @@ -1 +1 @@ -Thu Sep 14 06:22:06 UTC 2023 +Fri Sep 15 06:21:44 UTC 2023 From 58c1fa3174dbf44aa0d65687c6df3617b6158140 Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Mon, 18 Sep 2023 08:10:10 -0300 Subject: [PATCH 2/4] add fromjson-env-var workflow Signed-off-by: Guillaume Falourd --- .github/workflows/67-fromjson-env-var.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/67-fromjson-env-var.yaml diff --git a/.github/workflows/67-fromjson-env-var.yaml b/.github/workflows/67-fromjson-env-var.yaml new file mode 100644 index 0000000000..67c202a164 --- /dev/null +++ b/.github/workflows/67-fromjson-env-var.yaml @@ -0,0 +1,17 @@ +name: 67 - FromJSON var + +on: + workflow_dispatch: + +env: + myjson: '{"foo1" : "bar1", "foo2": "bar2"}' + var_foo: 'foo2' + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - run: echo ${{ fromjson(env.myjson).foo2 }} + - run: echo ${{ fromJSON(env.myjson)[env.var_foo] }} + +# REF: https://stackoverflow.com/questions/77123861/github-actions-workflow-how-to-access-fromjson-dictionary-value-using-the-key-s From c753c6f366135ddf47dc4d1fed3b2b7af6a83b50 Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Mon, 18 Sep 2023 08:31:23 -0300 Subject: [PATCH 3/4] update fromjson-env-var workflow Signed-off-by: Guillaume Falourd --- .github/workflows/67-fromjson-env-var.yaml | 4 ++-- README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/67-fromjson-env-var.yaml b/.github/workflows/67-fromjson-env-var.yaml index 67c202a164..5220077a44 100644 --- a/.github/workflows/67-fromjson-env-var.yaml +++ b/.github/workflows/67-fromjson-env-var.yaml @@ -1,4 +1,4 @@ -name: 67 - FromJSON var +name: 67 - FromJSON env var on: workflow_dispatch: @@ -11,7 +11,7 @@ jobs: job1: runs-on: ubuntu-latest steps: - - run: echo ${{ fromjson(env.myjson).foo2 }} + - run: echo ${{ fromJSON(env.myjson).foo2 }} - run: echo ${{ fromJSON(env.myjson)[env.var_foo] }} # REF: https://stackoverflow.com/questions/77123861/github-actions-workflow-how-to-access-fromjson-dictionary-value-using-the-key-s diff --git a/README.md b/README.md index 7dcf62ea80..a40f98ae6f 100644 --- a/README.md +++ b/README.md @@ -298,3 +298,11 @@ This workflow illustrates how to identify updated folders to perfom a similar be [![65 - Sequential Matrix](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/65-sequential-matrix.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/65-sequential-matrix.yml) This workflow illustrates how to execute sequencial jobs in specific order using matrix with `max-parallel: 1` strategy. + +[![66 - Matrix Object](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/66-matrix-object.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/66-matrix-object.yml) + +This workflow illustrates how to manipulate matrix object to perform different operation according to a object type. + +[![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. From e6caf9c47d7969f9742e72e62b7af0aca3020130 Mon Sep 17 00:00:00 2001 From: GuillaumeFalourd Date: Tue, 19 Sep 2023 02:13:44 +0000 Subject: [PATCH 4/4] ubuntu full remote workflow --- ubuntu_report_full_remote.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 ubuntu_report_full_remote.txt diff --git a/ubuntu_report_full_remote.txt b/ubuntu_report_full_remote.txt new file mode 100644 index 0000000000..b9f9f7edac --- /dev/null +++ b/ubuntu_report_full_remote.txt @@ -0,0 +1 @@ +Tue Sep 19 02:13:43 UTC 2023