Skip to content

Commit

Permalink
Merge branch 'git-commit-push-action-6230319233-ubuntu-full-remote' i…
Browse files Browse the repository at this point in the history
…nto ubuntu
  • Loading branch information
GuillaumeFalourd authored and GuillaumeFalourd committed Sep 19, 2023
2 parents 2427d21 + e6caf9c commit 15d2cf3
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/67-fromjson-env-var.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 67 - FromJSON env 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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion backup/checkout-workflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fri Sep 15 01:10:44 UTC 2023
Mon Sep 18 01:10:12 UTC 2023
2 changes: 1 addition & 1 deletion backup/pull-request-workflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Thu Sep 14 06:22:06 UTC 2023
Fri Sep 15 06:21:44 UTC 2023
2 changes: 1 addition & 1 deletion ubuntu_report_full_remote.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Mon Sep 18 02:12:54 UTC 2023
Tue Sep 19 02:13:43 UTC 2023

0 comments on commit 15d2cf3

Please sign in to comment.