From 44b5fc330c9d47fd03c64bdd25945cf3c9396cda Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Thu, 7 May 2020 17:09:51 +0200 Subject: [PATCH 001/165] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..aa91291 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From b4bce00f7bbf3df6b8d2debe9aec1aa9a466be7e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 19:15:15 +0200 Subject: [PATCH 002/165] Add workflow to publish social annunce --- .github/workflows/publish-on-social.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish-on-social.yml diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml new file mode 100644 index 0000000..d6a464c --- /dev/null +++ b/.github/workflows/publish-on-social.yml @@ -0,0 +1,20 @@ +name: publish-on-social + +on: + push: + branches: + - master + schedule: + - cron: '0 4 * * *' + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: fjogeleit/http-request-action@master + id: announce_data + with: + url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' + method: 'GET' + - run: "echo announce data: ${{ steps.announce_data.outputs.response }}" + \ No newline at end of file From 31295b0affabbea108e722ad50112d901a4357b9 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 19:18:18 +0200 Subject: [PATCH 003/165] Disable cron configuration --- .github/workflows/publish-on-social.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d6a464c..d2a9518 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -4,8 +4,8 @@ on: push: branches: - master - schedule: - - cron: '0 4 * * *' +# schedule: +# - cron: '0 4 * * *' jobs: deploy: @@ -17,4 +17,4 @@ jobs: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - run: "echo announce data: ${{ steps.announce_data.outputs.response }}" - \ No newline at end of file + From 76895846bccfa201fff29a35b25c15d1b7d67ba9 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 19:59:04 +0200 Subject: [PATCH 004/165] Assign JSON object to variable --- .github/workflows/publish-on-social.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d6a464c..c15113a 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -16,5 +16,7 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - run: "echo announce data: ${{ steps.announce_data.outputs.response }}" + - run: | + $output = '${{ steps.announce_data.outputs.response }}' | ConvertFrom-Json + Write-Host "Time from output $($output.publish-info.cut-over-date)" \ No newline at end of file From 3ec495f2082f77d9dc07b4dcca5b697f9a4fda9a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 20:29:03 +0200 Subject: [PATCH 005/165] Inspect JSON Object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index db4dc50..e74402e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -17,6 +17,6 @@ jobs: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - run: | - $output = '${{ steps.announce_data.outputs.response }}' | ConvertFrom-Json + $output = $steps.announce_data.outputs.response Write-Host "Time from output $($output.publish-info.cut-over-date)" From e18bff50a055420a39c5433652ad135bc597025b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 20:38:28 +0200 Subject: [PATCH 006/165] Assign JSON Object to variable and print attribute --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index e74402e..b9130c7 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -17,6 +17,6 @@ jobs: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - run: | - $output = $steps.announce_data.outputs.response - Write-Host "Time from output $($output.publish-info.cut-over-date)" + "$output = $steps.announce_data.outputs.response ; \ + echo ${{output.publish-info.cut-over-date}}" From 4b83d6893b9ceb57ec6687d30b9a77d73e63fb4a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 20:42:00 +0200 Subject: [PATCH 007/165] Assign JSON Object to variable and print attribute 2 --- .github/workflows/publish-on-social.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index b9130c7..606d130 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -16,7 +16,5 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - run: | - "$output = $steps.announce_data.outputs.response ; \ - echo ${{output.publish-info.cut-over-date}}" + - run: "echo ${{$steps.announce_data.outputs.response.publish-info.cut-over-date}}" From 8500d231b047df1673718100f68497dfe0203d25 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 20:52:54 +0200 Subject: [PATCH 008/165] Print attribute of JSON object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 606d130..f5acf12 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -16,5 +16,5 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - run: "echo ${{$steps.announce_data.outputs.response.publish-info.cut-over-date}}" + - run: "echo ${{steps.announce_data.outputs.response.publish-info.cut-over-date}}" From e829c365fcfbf95df999a095a0326695e39db6a5 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 21:17:13 +0200 Subject: [PATCH 009/165] JSON Object assigned to variable --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index f5acf12..8f5de92 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -16,5 +16,6 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - run: "echo ${{steps.announce_data.outputs.response.publish-info.cut-over-date}}" - + - run: echo ::set-output name=output::'${{steps.announce_data.outputs.response}}' + - run: echo "${{output.publish-info.cut-over-date}}" + From e3b12168932b3fecadc0b258e15a28c9039f1753 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 21:43:41 +0200 Subject: [PATCH 010/165] Parsing JSON string into Object --- .github/workflows/publish-on-social.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 8f5de92..460da0a 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -16,6 +16,5 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - run: echo ::set-output name=output::'${{steps.announce_data.outputs.response}}' - - run: echo "${{output.publish-info.cut-over-date}}" + - run: " echo ${{ parseJSON(steps.announce_data.outputs.response).publish-info.cut-over-date }}" From c353e8763cb9b33d2736e96ed028fd318a3284e8 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 21:50:33 +0200 Subject: [PATCH 011/165] Use JSON String and convert to Object --- .github/workflows/publish-on-social.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 460da0a..4b57a34 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -1,7 +1,7 @@ name: publish-on-social on: - push: + push:.cut-over-date branches: - master # schedule: @@ -16,5 +16,9 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - run: " echo ${{ parseJSON(steps.announce_data.outputs.response).publish-info.cut-over-date }}" + - name: Set Output + id: set + run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' + - name: Use Output + run: "echo ${{ steps.set.outputs.json_var.publish-info.cut-over-date }}" From 2eec2530848f57abd85ed56ab6348a1d60c410bc Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 21:51:49 +0200 Subject: [PATCH 012/165] Sintax error --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4b57a34..dea0e6c 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -1,7 +1,7 @@ name: publish-on-social on: - push:.cut-over-date + push: branches: - master # schedule: From 20ecc722382252c018297704232ac084bc1e31d0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 21:57:17 +0200 Subject: [PATCH 013/165] Convert JSON string to object --- .github/workflows/publish-on-social.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index dea0e6c..87ffb04 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -20,5 +20,6 @@ jobs: id: set run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - name: Use Output - run: "echo ${{ steps.set.outputs.json_var.publish-info.cut-over-date }}" + run: | + echo $json_var | jq '.publish-info.cut-over-date' From d37fbe62cb655656eab099638feea058b7e365e3 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 21:59:28 +0200 Subject: [PATCH 014/165] Convert JSON string to object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 87ffb04..48770c6 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,5 +21,5 @@ jobs: run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - name: Use Output run: | - echo $json_var | jq '.publish-info.cut-over-date' + echo $json_var | jq '.' From a52f9a0868b08d65c4156207dbdeab05f555ccc6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 22:04:37 +0200 Subject: [PATCH 015/165] Convert JSON string to object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 48770c6..8fa7e7c 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,5 +21,5 @@ jobs: run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - name: Use Output run: | - echo $json_var | jq '.' + echo $steps.set.outputs.json_var | jq '.' From 060d9cf8560c1aee3bd8a478f8394f9a005fd696 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 22:07:26 +0200 Subject: [PATCH 016/165] Convert JSON string to object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 8fa7e7c..27e1ad5 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,5 +21,5 @@ jobs: run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - name: Use Output run: | - echo $steps.set.outputs.json_var | jq '.' + echo '${{ steps.set.outputs.json_var }}' | jq '.' From 7b5936f636d376fa361419a72fc21d9b0aa114e0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 22:09:28 +0200 Subject: [PATCH 017/165] Convert JSON string to object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 27e1ad5..a1fa44d 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,5 +21,5 @@ jobs: run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - name: Use Output run: | - echo '${{ steps.set.outputs.json_var }}' | jq '.' + echo '${{ steps.set.outputs.json_var.publish-info.cut-over-date }}' | jq '.' From b2fdc3eaed0697e3fbbd2342bd3064697aa2f2b5 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sat, 16 May 2020 22:12:42 +0200 Subject: [PATCH 018/165] Convert JSON string to object --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index a1fa44d..707bad2 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,5 +21,5 @@ jobs: run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - name: Use Output run: | - echo '${{ steps.set.outputs.json_var.publish-info.cut-over-date }}' | jq '.' + echo '${{ steps.set.outputs.json_var }}' | jq '.publish-info' From 55ddb5880b481f0c37890cdabb676ed33ad6e5f6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 17 May 2020 15:56:48 +0200 Subject: [PATCH 019/165] Use get-json-paths-action --- .github/workflows/publish-on-social.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 707bad2..24407c8 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -16,10 +16,14 @@ jobs: with: url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' method: 'GET' - - name: Set Output - id: set - run: echo ::set-output name=json_var::'${{ steps.announce_data.outputs.response }}' - - name: Use Output + - name: Convert to JSON object + uses: gr2m/get-json-paths-action@v1.x + id: json-convert + with: + json: ${{ steps.announce_data.outputs.response }} + publish-info: "publish-info" + posts: "posts" + - name: Print Output run: | - echo '${{ steps.set.outputs.json_var }}' | jq '.publish-info' + echo '${{ steps.json-convert.outputs.publish-info }}' | jq '.' From 56e0a97a25b486d880202f3a09a25e9c3a6f656a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 17 May 2020 16:08:13 +0200 Subject: [PATCH 020/165] Use get-json-paths-action --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 24407c8..5ae8246 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,9 +21,9 @@ jobs: id: json-convert with: json: ${{ steps.announce_data.outputs.response }} - publish-info: "publish-info" + publish-info: "publish-info.cut-over-date" posts: "posts" - name: Print Output run: | - echo '${{ steps.json-convert.outputs.publish-info }}' | jq '.' + "echo ${{ steps.json-convert.outputs.publish-info }}" From 384005d003c8dbe5b3683cbf20b219dc58da52af Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 17 May 2020 16:09:54 +0200 Subject: [PATCH 021/165] Use get-json-paths-action --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 5ae8246..4eddfde 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -25,5 +25,5 @@ jobs: posts: "posts" - name: Print Output run: | - "echo ${{ steps.json-convert.outputs.publish-info }}" + "echo '${{ steps.json-convert.outputs.publish-info }}'" From 81fbdcd117c18a66a99e05f4ebb1f375d9028ca4 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 17 May 2020 16:11:04 +0200 Subject: [PATCH 022/165] Use get-json-paths-action --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4eddfde..7f858db 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -25,5 +25,5 @@ jobs: posts: "posts" - name: Print Output run: | - "echo '${{ steps.json-convert.outputs.publish-info }}'" + echo "${{ steps.json-convert.outputs.publish-info }}" From 325fa0b53b5297588f30ebad484e378417be569e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 17 May 2020 17:33:47 +0200 Subject: [PATCH 023/165] Use get-json-paths-action --- .github/workflows/publish-on-social.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 7f858db..6acde25 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -25,5 +25,6 @@ jobs: posts: "posts" - name: Print Output run: | - echo "${{ steps.json-convert.outputs.publish-info }}" + echo "${{ steps.json-convert.outputs.publish-info }}"; + echo "${{ steps.json-convert.outputs.posts }}" From e08c05cf0b53f3d0c8328b50946a8c97c6396383 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 17 May 2020 18:00:38 +0200 Subject: [PATCH 024/165] Use GLV_SITE_ANNOUNCE_DATA secret --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 6acde25..d2b9c27 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -14,7 +14,7 @@ jobs: - uses: fjogeleit/http-request-action@master id: announce_data with: - url: 'https://raw.githubusercontent.com/Getlatestversion/getlatestversion.github.io/master/announce.data' + url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - name: Convert to JSON object uses: gr2m/get-json-paths-action@v1.x From fb74679605220a0b84e63fbeb3a3e3bd6e525971 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 17:11:28 +0200 Subject: [PATCH 025/165] Add mock of annunce.data --- annunce.data | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 annunce.data diff --git a/annunce.data b/annunce.data new file mode 100644 index 0000000..34af49e --- /dev/null +++ b/annunce.data @@ -0,0 +1,48 @@ + +{ + "publish-info":{ + "cut-over-date":"2020-05-16 14:50:28.594082098 +0000 UTC" + }, + "posts":[ + { + "title": "Organizzazione account in Azure DevOps: Security dei WorkItem", + "date_published": "2020-05-11T00:00:38+01:00", + "date_modified": "2020-05-11T00:00:38+01:00", + "id": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", + "url": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", + "content_html": "

Breve pillola sul come configurare la security delle aree per far si che un utente possa vedere solamente i Work Item che fanno parte dei team a cui appartiene.

\n\n
\n \n
\n\n

Per chi se li fosse persi, ecco i link ai precedenti video di questa serie.

\n\n

Buona visione.

\n" + }, + { + "title": "Gestire progetti utilizzando le Wiki di Azure DevOps", + "date_published": "2020-05-05T15:30:00+01:00", + "date_modified": "2020-05-05T15:30:00+01:00", + "id": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/", + "url": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/", + "content_html": "

Con il seguente video descrivo un particolare approccio alla gestione di progetti (o parte di essi) sfruttando le Wiki di Azure DevOps.

\n

L’idea alla base è molto semplice: un progetto complesso da gestire, in un momento in cui ancora non si conosce altro che i punti salienti utili alla raccolta requisiti. Siccome creare work item può essere sia prematuro che scomodo, perché invece non sfruttare la Wiki come aggregatore di appunti e come strumento centrale di gesione?

\n

Vediamo come…

\n\n
\n \n
\n\n" + }, + { + "title": "Organizzazione account in Azure DevOps", + "date_published": "2020-04-28T15:00:38+01:00", + "date_modified": "2020-04-28T15:00:38+01:00", + "id": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/", + "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/", + "content_html": "

Breve pillola sul come organizzare il proprio account Azure DevOps con Team Project / Team ed organizations.

\n\n
\n \n
\n\n" + }, + { + "title": "Organizzazione account in Azure DevOps: Security", + "date_published": "2020-04-28T15:00:38+01:00", + "date_modified": "2020-04-28T15:00:38+01:00", + "id": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/", + "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/", + "content_html": "

Breve pillola sul come Azure DevOps utilizzi gruppi interni per gestire la security di un intera organizzazione e quella dei singoli Team Projects.

\n\n
\n \n
\n\n

Buona visione.

\n" + }, + { + "title": "Evidenziare gli impedimenti in una kanban board su Azure DevOps", + "date_published": "2020-04-25T20:14:38+01:00", + "date_modified": "2020-04-25T20:14:38+01:00", + "id": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/", + "url": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/", + "content_html": "

In questo video tutorial viene mostrato come evidenziari gli impedimenti in un approccio kanban su Azure DevOps.

\n\n
\n \n
\n\n" + } + ] +} From 3214d5be308c0500897aae9e00e3b16c12676cd6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 17:32:39 +0200 Subject: [PATCH 026/165] Run Action --- .github/workflows/publish-on-social.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d2b9c27..a2e498d 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -27,4 +27,5 @@ jobs: run: | echo "${{ steps.json-convert.outputs.publish-info }}"; echo "${{ steps.json-convert.outputs.posts }}" + From d2d11def75175c147cff7a73dd52acbb169009d6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 18:37:27 +0200 Subject: [PATCH 027/165] Add publish matrix --- .github/workflows/publish-on-social.yml | 37 ++++++++++++------------- annunce.data | 32 ++++++++++----------- 2 files changed, 33 insertions(+), 36 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index a2e498d..22c0f18 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -8,24 +8,23 @@ on: # - cron: '0 4 * * *' jobs: - deploy: + prepare-annunce: runs-on: ubuntu-18.04 + outputs: + matrix: ${{ steps.set-annunce.outputs.matrix }} steps: - - uses: fjogeleit/http-request-action@master - id: announce_data - with: - url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' - method: 'GET' - - name: Convert to JSON object - uses: gr2m/get-json-paths-action@v1.x - id: json-convert - with: - json: ${{ steps.announce_data.outputs.response }} - publish-info: "publish-info.cut-over-date" - posts: "posts" - - name: Print Output - run: | - echo "${{ steps.json-convert.outputs.publish-info }}"; - echo "${{ steps.json-convert.outputs.posts }}" - - + - name: Read from GLV site the annunces posts and article + uses: fjogeleit/http-request-action@master + id: read-announce_data + with: + url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' + method: 'GET' + - name: set output matrix with posts array + id: set-annunce-matrix + run: "::set-output name=matrix::echo '${{ steps.announce_data.outputs.response }}' | jq -c '.posts'" + publish-matrix: + needs: prepare-annunce + runs-on: ubuntu-18.04 + strategy: + matrix: ${{ fromJson(needs.prepare-annunce.outputs.matrix) }} + - run: echo "toJson(${{ matrix }})" diff --git a/annunce.data b/annunce.data index 34af49e..7efe88a 100644 --- a/annunce.data +++ b/annunce.data @@ -1,48 +1,46 @@ - { - "publish-info":{ - "cut-over-date":"2020-05-16 14:50:28.594082098 +0000 UTC" - }, - "posts":[ - { + "publish-info": { + "cut-over-date": "2020-05-17 04:04:49.892153138 +0000 UTC" + }, + "posts": + [{ "title": "Organizzazione account in Azure DevOps: Security dei WorkItem", "date_published": "2020-05-11T00:00:38+01:00", "date_modified": "2020-05-11T00:00:38+01:00", "id": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", "url": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", "content_html": "

Breve pillola sul come configurare la security delle aree per far si che un utente possa vedere solamente i Work Item che fanno parte dei team a cui appartiene.

\n\n
\n \n
\n\n

Per chi se li fosse persi, ecco i link ai precedenti video di questa serie.

\n\n

Buona visione.

\n" - }, - { + }, + { "title": "Gestire progetti utilizzando le Wiki di Azure DevOps", "date_published": "2020-05-05T15:30:00+01:00", "date_modified": "2020-05-05T15:30:00+01:00", "id": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/", "url": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/", "content_html": "

Con il seguente video descrivo un particolare approccio alla gestione di progetti (o parte di essi) sfruttando le Wiki di Azure DevOps.

\n

L’idea alla base è molto semplice: un progetto complesso da gestire, in un momento in cui ancora non si conosce altro che i punti salienti utili alla raccolta requisiti. Siccome creare work item può essere sia prematuro che scomodo, perché invece non sfruttare la Wiki come aggregatore di appunti e come strumento centrale di gesione?

\n

Vediamo come…

\n\n
\n \n
\n\n" - }, - { + }, + { "title": "Organizzazione account in Azure DevOps", "date_published": "2020-04-28T15:00:38+01:00", "date_modified": "2020-04-28T15:00:38+01:00", "id": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/", "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/", "content_html": "

Breve pillola sul come organizzare il proprio account Azure DevOps con Team Project / Team ed organizations.

\n\n
\n \n
\n\n" - }, - { + }, + { "title": "Organizzazione account in Azure DevOps: Security", "date_published": "2020-04-28T15:00:38+01:00", "date_modified": "2020-04-28T15:00:38+01:00", "id": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/", "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/", "content_html": "

Breve pillola sul come Azure DevOps utilizzi gruppi interni per gestire la security di un intera organizzazione e quella dei singoli Team Projects.

\n\n
\n \n
\n\n

Buona visione.

\n" - }, - { + }, + { "title": "Evidenziare gli impedimenti in una kanban board su Azure DevOps", "date_published": "2020-04-25T20:14:38+01:00", "date_modified": "2020-04-25T20:14:38+01:00", "id": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/", "url": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/", "content_html": "

In questo video tutorial viene mostrato come evidenziari gli impedimenti in un approccio kanban su Azure DevOps.

\n\n
\n \n
\n\n" - } - ] -} + }] +} \ No newline at end of file From 62e4f9e4fe63c7a7f2b09be07a69cf02a26a27e3 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 18:40:54 +0200 Subject: [PATCH 028/165] correct line 29 --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 22c0f18..487dc72 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,5 +26,5 @@ jobs: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: - matrix: ${{ fromJson(needs.prepare-annunce.outputs.matrix) }} + matrix: ${{fromJson(needs.prepare-annunce.outputs.matrix)}} - run: echo "toJson(${{ matrix }})" From e8d93f44a93ce70ecfb24581c9fc1c3c69d6fbb1 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 18:47:44 +0200 Subject: [PATCH 029/165] correct line 29 --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 487dc72..397bc14 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,5 +26,6 @@ jobs: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: - matrix: ${{fromJson(needs.prepare-annunce.outputs.matrix)}} - - run: echo "toJson(${{ matrix }})" + matrix: fromJson(${{ needs.prepare-annunce.outputs.matrix }}) + steps: + - run: echo "${{ needs.prepare-annunce.outputs.matrix }}" From fc72469a2039a010814c4a53af56f690591c6a5a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 18:53:05 +0200 Subject: [PATCH 030/165] correct line 29 --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 397bc14..4d11777 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -15,13 +15,13 @@ jobs: steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master - id: read-announce_data + id: read-announce-data with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - name: set output matrix with posts array id: set-annunce-matrix - run: "::set-output name=matrix::echo '${{ steps.announce_data.outputs.response }}' | jq -c '.posts'" + run: ::set-output name=matrix::"echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts'" publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 From e3109edba5466d9182397eb0e1fa91cb53c096ed Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 19:00:08 +0200 Subject: [PATCH 031/165] correct line 29 --- .github/workflows/publish-on-social.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4d11777..937bd99 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ steps.set-annunce.outputs.matrix }} + matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -19,9 +19,6 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: set output matrix with posts array - id: set-annunce-matrix - run: ::set-output name=matrix::"echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts'" publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 From a1664921298e2c5ee638307e6a839e9e41af8e30 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 19:02:02 +0200 Subject: [PATCH 032/165] correct line 29 --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 937bd99..8bef254 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,6 +23,6 @@ jobs: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: - matrix: fromJson(${{ needs.prepare-annunce.outputs.matrix }}) + matrix: ${{ fromJson(needs.prepare-annunce.outputs.matrix) }} steps: - run: echo "${{ needs.prepare-annunce.outputs.matrix }}" From 6a0f78b1a8219f9fb44f6dcf15e2da0c86f26bf4 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 19:05:55 +0200 Subject: [PATCH 033/165] correct line 29 --- annunce.data | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/annunce.data b/annunce.data index 7efe88a..7be25b8 100644 --- a/annunce.data +++ b/annunce.data @@ -5,42 +5,22 @@ "posts": [{ "title": "Organizzazione account in Azure DevOps: Security dei WorkItem", - "date_published": "2020-05-11T00:00:38+01:00", - "date_modified": "2020-05-11T00:00:38+01:00", - "id": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", - "url": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", - "content_html": "

Breve pillola sul come configurare la security delle aree per far si che un utente possa vedere solamente i Work Item che fanno parte dei team a cui appartiene.

\n\n
\n \n
\n\n

Per chi se li fosse persi, ecco i link ai precedenti video di questa serie.

\n\n

Buona visione.

\n" + "url": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/" }, { "title": "Gestire progetti utilizzando le Wiki di Azure DevOps", - "date_published": "2020-05-05T15:30:00+01:00", - "date_modified": "2020-05-05T15:30:00+01:00", - "id": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/", - "url": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/", - "content_html": "

Con il seguente video descrivo un particolare approccio alla gestione di progetti (o parte di essi) sfruttando le Wiki di Azure DevOps.

\n

L’idea alla base è molto semplice: un progetto complesso da gestire, in un momento in cui ancora non si conosce altro che i punti salienti utili alla raccolta requisiti. Siccome creare work item può essere sia prematuro che scomodo, perché invece non sfruttare la Wiki come aggregatore di appunti e come strumento centrale di gesione?

\n

Vediamo come…

\n\n
\n \n
\n\n" + "url": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/" }, { "title": "Organizzazione account in Azure DevOps", - "date_published": "2020-04-28T15:00:38+01:00", - "date_modified": "2020-04-28T15:00:38+01:00", - "id": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/", - "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/", - "content_html": "

Breve pillola sul come organizzare il proprio account Azure DevOps con Team Project / Team ed organizations.

\n\n
\n \n
\n\n" + "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/" }, { "title": "Organizzazione account in Azure DevOps: Security", - "date_published": "2020-04-28T15:00:38+01:00", - "date_modified": "2020-04-28T15:00:38+01:00", - "id": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/", - "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/", - "content_html": "

Breve pillola sul come Azure DevOps utilizzi gruppi interni per gestire la security di un intera organizzazione e quella dei singoli Team Projects.

\n\n
\n \n
\n\n

Buona visione.

\n" + "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/" }, { "title": "Evidenziare gli impedimenti in una kanban board su Azure DevOps", - "date_published": "2020-04-25T20:14:38+01:00", - "date_modified": "2020-04-25T20:14:38+01:00", - "id": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/", - "url": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/", - "content_html": "

In questo video tutorial viene mostrato come evidenziari gli impedimenti in un approccio kanban su Azure DevOps.

\n\n
\n \n
\n\n" + "url": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/" }] } \ No newline at end of file From df8f37b6b3ac875742a0ea83f359f05e54d27948 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 19:41:26 +0200 Subject: [PATCH 034/165] correct line 29 --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 8bef254..340b780 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,6 +23,6 @@ jobs: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: - matrix: ${{ fromJson(needs.prepare-annunce.outputs.matrix) }} + matrix: ${{ needs.prepare-annunce.outputs.matrix }} steps: - run: echo "${{ needs.prepare-annunce.outputs.matrix }}" From 47f1ab4fac3841233f5fd911303a8417ae1ef890 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:09:35 +0200 Subject: [PATCH 035/165] traslate annunce object in attributes array --- .github/workflows/publish-on-social.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 340b780..19aa4f6 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) }} + matrix: ${{ steps.traslate-object-2-array.outputs.matrix }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -19,6 +19,10 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' + - name: Traslate annunce objects into attributes array + id: traslate-object-2-array + run: echo "::set-output name=matrix.title::$(echo ${{steps.read-announce-data.outputs.response}}|jq -c '.posts[].title'| jq -s)" ; echo "::set-output name=matrix.url::$(echo ${{steps.read-announce-data.outputs.response}}|jq -c '.posts[].url'| jq -s)" + publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 From e358fbaff9f8cfca8b0c698ac6e70adc8d857ce0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:14:41 +0200 Subject: [PATCH 036/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 19aa4f6..b9a6a3e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: method: 'GET' - name: Traslate annunce objects into attributes array id: traslate-object-2-array - run: echo "::set-output name=matrix.title::$(echo ${{steps.read-announce-data.outputs.response}}|jq -c '.posts[].title'| jq -s)" ; echo "::set-output name=matrix.url::$(echo ${{steps.read-announce-data.outputs.response}}|jq -c '.posts[].url'| jq -s)" + run: echo "::set-output name=matrix.title::$(echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| jq -s)" ; echo "::set-output name=matrix.url::$(echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| jq -s)" publish-matrix: needs: prepare-annunce From 721a1f94e122bbd4fadf95797708d27a56f4d80f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:25:35 +0200 Subject: [PATCH 037/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index b9a6a3e..460c446 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: method: 'GET' - name: Traslate annunce objects into attributes array id: traslate-object-2-array - run: echo "::set-output name=matrix.title::$(echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| jq -s)" ; echo "::set-output name=matrix.url::$(echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| jq -s)" + run: echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| jq -s" ; echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| jq -s publish-matrix: needs: prepare-annunce From 2bb5055edca32848af98127688ee6106c056c9de Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:26:59 +0200 Subject: [PATCH 038/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 460c446..12eaf5d 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: method: 'GET' - name: Traslate annunce objects into attributes array id: traslate-object-2-array - run: echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| jq -s" ; echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| jq -s + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| jq -s ; echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| jq -s" publish-matrix: needs: prepare-annunce From 60733868e6e5b9e96d63145ccd052c78b063f0d9 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:32:24 +0200 Subject: [PATCH 039/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 12eaf5d..6d37068 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: method: 'GET' - name: Traslate annunce objects into attributes array id: traslate-object-2-array - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| jq -s ; echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| jq -s" + run: echo "::set-output name=matrix.title::'${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'" ; echo "::set-output name=matrix.url::'${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url' publish-matrix: needs: prepare-annunce From 26d170df0eda3311ce7c33408374254648ee37c4 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:40:42 +0200 Subject: [PATCH 040/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 6d37068..256893b 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,9 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ steps.traslate-object-2-array.outputs.matrix }} + matrix.titles: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].title)}} + matrix.urls: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].title)}} + steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -19,14 +21,13 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: Traslate annunce objects into attributes array - id: traslate-object-2-array - run: echo "::set-output name=matrix.title::'${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'" ; echo "::set-output name=matrix.url::'${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url' publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: - matrix: ${{ needs.prepare-annunce.outputs.matrix }} + matrix: + titles: ${{ needs.prepare-annunce.outputs.matrix.titles }} + urls: ${{ needs.prepare-annunce.outputs.matrix.urls }} steps: - run: echo "${{ needs.prepare-annunce.outputs.matrix }}" From db6f9a632c7a89651be10c2550d149e9216508b0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:42:17 +0200 Subject: [PATCH 041/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 256893b..745fe87 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-18.04 outputs: matrix.titles: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].title)}} - matrix.urls: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].title)}} + matrix.urls: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].url)}} steps: - name: Read from GLV site the annunces posts and article From 6c1ce66c1cd5508ab3dc55f16700465ea72fa7f0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:43:21 +0200 Subject: [PATCH 042/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 745fe87..2df1e28 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix.titles: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].title)}} - matrix.urls: ${{toJson(fromJson(${{steps.read-announce-data.outputs.response}}).posts[].url)}} + matrix.titles: ${{toJson(fromJson(steps.read-announce-data.outputs.response).posts[].title)}} + matrix.urls: ${{toJson(fromJson(steps.read-announce-data.outputs.response).posts[].url)}} steps: - name: Read from GLV site the annunces posts and article From 9ff67c18893146bd86535eb066cd01a82e31bb2b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:51:45 +0200 Subject: [PATCH 043/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 2df1e28..6932f7e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix.titles: ${{toJson(fromJson(steps.read-announce-data.outputs.response).posts[].title)}} - matrix.urls: ${{toJson(fromJson(steps.read-announce-data.outputs.response).posts[].url)}} + titles: ${{ steps.annunce-title.array }} + urls: ${{ steps.annunce-url.array }} steps: - name: Read from GLV site the annunces posts and article @@ -21,13 +21,20 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' + - name: Traslate annunce attribute 'title' into array + id: annunce-title + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'|::set-output name=array:: js -s" + - name: Traslate annunce attribute 'url' into array + id: annunce-url + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'|::set-output name=array:: js -s" publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: matrix: - titles: ${{ needs.prepare-annunce.outputs.matrix.titles }} - urls: ${{ needs.prepare-annunce.outputs.matrix.urls }} + titles: ${{ needs.prepare-annunce.outputs.titles }} + urls: ${{ needs.prepare-annunce.outputs.urls }} steps: - - run: echo "${{ needs.prepare-annunce.outputs.matrix }}" + - run: echo "${{ needs.prepare-annunce.outputs.titles }}" + - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From 1259eccc73d6f9b1a94354ad9ff92fa87fe5cb77 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:53:15 +0200 Subject: [PATCH 044/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 6932f7e..c37395f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,10 @@ jobs: method: 'GET' - name: Traslate annunce attribute 'title' into array id: annunce-title - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'|::set-output name=array:: js -s" + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| js -s" - name: Traslate annunce attribute 'url' into array id: annunce-url - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'|::set-output name=array:: js -s" + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| js -s" publish-matrix: needs: prepare-annunce From 6a4e09fb92b7117cdc9123f98d4eff9a8690ef95 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:54:34 +0200 Subject: [PATCH 045/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c37395f..330e078 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,10 @@ jobs: method: 'GET' - name: Traslate annunce attribute 'title' into array id: annunce-title - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'| js -s" + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'" - name: Traslate annunce attribute 'url' into array id: annunce-url - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'| js -s" + run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'" publish-matrix: needs: prepare-annunce From d57fedd55bd7dfdde4b2d3d96c84c606b2dc2caa Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 20:58:45 +0200 Subject: [PATCH 046/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 330e078..1f13ad4 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,10 @@ jobs: method: 'GET' - name: Traslate annunce attribute 'title' into array id: annunce-title - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].title'" + run: "echo '$(echo \'${{ steps.read-announce-data.outputs.response }}\' | jq -c \'.posts[].title\')'| jq -s" - name: Traslate annunce attribute 'url' into array id: annunce-url - run: "echo '${{ steps.read-announce-data.outputs.response }}'|jq -c '.posts[].url'" + run: "echo '$("echo \'${{ steps.read-announce-data.outputs.response }}\' | jq -c \'.posts[].url\')' | js -s" publish-matrix: needs: prepare-annunce From b727b41fa3aa0b7b7906d852831b17aa03c33fd6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 21:00:38 +0200 Subject: [PATCH 047/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 1f13ad4..ad0f6d2 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,10 @@ jobs: method: 'GET' - name: Traslate annunce attribute 'title' into array id: annunce-title - run: "echo '$(echo \'${{ steps.read-announce-data.outputs.response }}\' | jq -c \'.posts[].title\')'| jq -s" + run: "echo '$(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts[].title\")'| jq -s" - name: Traslate annunce attribute 'url' into array id: annunce-url - run: "echo '$("echo \'${{ steps.read-announce-data.outputs.response }}\' | jq -c \'.posts[].url\')' | js -s" + run: "echo '$(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts[].url\")' | js -s" publish-matrix: needs: prepare-annunce From 19bffd1de0081ecf529bf3d4b2dd915a07c83a12 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 21:12:32 +0200 Subject: [PATCH 048/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index ad0f6d2..bda315c 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,12 +21,18 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: Traslate annunce attribute 'title' into array + - name: Extract from annunce the values of attribute 'title' + id: annunce-list-title + run: echo "::set-output name=list::'${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title'" + - name: Extract from annunce the values of attribute 'url' + id: annunce-list-url + run: echo "::set-output name=list::'${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title'" + - name: Convert title list into annunce-title array id: annunce-title - run: "echo '$(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts[].title\")'| jq -s" - - name: Traslate annunce attribute 'url' into array + run: echo "::set-output name=array::'${{ steps.annunce-list-title.outputs.list }}' | jq -s " + - name: Convert url list into annunce-url array id: annunce-url - run: "echo '$(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts[].url\")' | js -s" + run: echo "::set-output name=array::'${{ steps.annunce-list-url.outputs.list }}' | jq -s " publish-matrix: needs: prepare-annunce From 9c3ebd7f55d2a04f9cc82de1f95d4b065f60411f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 21:17:13 +0200 Subject: [PATCH 049/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index bda315c..b39c0ba 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,10 @@ jobs: method: 'GET' - name: Extract from annunce the values of attribute 'title' id: annunce-list-title - run: echo "::set-output name=list::'${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title'" + run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title')" - name: Extract from annunce the values of attribute 'url' id: annunce-list-url - run: echo "::set-output name=list::'${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title'" + run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title')" - name: Convert title list into annunce-title array id: annunce-title run: echo "::set-output name=array::'${{ steps.annunce-list-title.outputs.list }}' | jq -s " From d47cba74f21ff998f7beb5440c346827e69cb18e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Mon, 18 May 2020 21:21:47 +0200 Subject: [PATCH 050/165] Correct JQ Invalid numeric literal --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index b39c0ba..072ac10 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,10 @@ jobs: method: 'GET' - name: Extract from annunce the values of attribute 'title' id: annunce-list-title - run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title')" + run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title' | jq -s)" - name: Extract from annunce the values of attribute 'url' id: annunce-list-url - run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title')" + run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title' | js -s)" - name: Convert title list into annunce-title array id: annunce-title run: echo "::set-output name=array::'${{ steps.annunce-list-title.outputs.list }}' | jq -s " From f87528acfa2c12b178b3b155c7107d3c17140aa8 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:07:20 +0200 Subject: [PATCH 051/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 072ac10..9c8578a 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,18 +21,12 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: Extract from annunce the values of attribute 'title' - id: annunce-list-title - run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title' | jq -s)" - - name: Extract from annunce the values of attribute 'url' - id: annunce-list-url - run: echo "::set-output name=list::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts[].title' | js -s)" - - name: Convert title list into annunce-title array + - name: Convert from annunce the values of attribute 'title' into array id: annunce-title - run: echo "::set-output name=array::'${{ steps.annunce-list-title.outputs.list }}' | jq -s " - - name: Convert url list into annunce-url array + run: echo "::set-output name=array::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts | map(.title)')" + - name: Convert from annunce the values of attribute 'url' into array id: annunce-url - run: echo "::set-output name=array::'${{ steps.annunce-list-url.outputs.list }}' | jq -s " + run: echo "::set-output name=array::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts | map(.url)')" publish-matrix: needs: prepare-annunce From 3bf2b44d19b55303b1d7d33e1b79e7b8272c83e7 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:13:42 +0200 Subject: [PATCH 052/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 9c8578a..5fa49c3 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,10 +23,14 @@ jobs: method: 'GET' - name: Convert from annunce the values of attribute 'title' into array id: annunce-title - run: echo "::set-output name=array::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts | map(.title)')" + env: + LIST: $(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts | map(.title)\") + run: echo "::set-output name=array::'$LIST'" - name: Convert from annunce the values of attribute 'url' into array id: annunce-url - run: echo "::set-output name=array::$(echo '${{ steps.read-announce-data.outputs.response }}' | jq -c '.posts | map(.url)')" + env: + LIST: $(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts | map(.url)\") + run: echo "::set-output name=array::'$LIST'" publish-matrix: needs: prepare-annunce From f24d519e1114def3b03ca56a9c63931de179bb74 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:24:44 +0200 Subject: [PATCH 053/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 5fa49c3..28d21f0 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -24,8 +24,8 @@ jobs: - name: Convert from annunce the values of attribute 'title' into array id: annunce-title env: - LIST: $(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts | map(.title)\") - run: echo "::set-output name=array::'$LIST'" + LIST: $(curl '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' | jq -c '.posts | map(.title)') + run: echo $LIST - name: Convert from annunce the values of attribute 'url' into array id: annunce-url env: From 6cdb0e078f75caa929df4fa392b7b9c21d67aadb Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:29:06 +0200 Subject: [PATCH 054/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 28d21f0..ec4e9de 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -22,10 +22,8 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - name: Convert from annunce the values of attribute 'title' into array - id: annunce-title - env: - LIST: $(curl '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' | jq -c '.posts | map(.title)') - run: echo $LIST + id: annunce-title + run: echo $(curl ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)') - name: Convert from annunce the values of attribute 'url' into array id: annunce-url env: From 3317159fcc401635e302597addc9084865b448e0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:30:42 +0200 Subject: [PATCH 055/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index ec4e9de..1e89f06 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,7 +23,7 @@ jobs: method: 'GET' - name: Convert from annunce the values of attribute 'title' into array id: annunce-title - run: echo $(curl ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)') + run: echo $(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)') - name: Convert from annunce the values of attribute 'url' into array id: annunce-url env: From c11de02cd03025a06563a9b44a31afd0772c8e1c Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:32:16 +0200 Subject: [PATCH 056/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 1e89f06..97b6550 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,7 +23,7 @@ jobs: method: 'GET' - name: Convert from annunce the values of attribute 'title' into array id: annunce-title - run: echo $(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)') + run: echo "::set-output name=array::$(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)')" - name: Convert from annunce the values of attribute 'url' into array id: annunce-url env: From 5a07503d1749f3605ce3434ab5d9897597f226fe Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:33:45 +0200 Subject: [PATCH 057/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 97b6550..fe192dd 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -24,6 +24,7 @@ jobs: - name: Convert from annunce the values of attribute 'title' into array id: annunce-title run: echo "::set-output name=array::$(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)')" + - run: echo ${{steps.annunce-title.array}} - name: Convert from annunce the values of attribute 'url' into array id: annunce-url env: From a2a667bce734d41e67d3db013b33b40fe9e799b6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:39:49 +0200 Subject: [PATCH 058/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index fe192dd..20d35df 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - titles: ${{ steps.annunce-title.array }} - urls: ${{ steps.annunce-url.array }} + titles: ${{ steps.read-announce-data.outputs.response.*.title }} + urls: ${{ steps.read-announce-data.outputs.response.*.url }} steps: - name: Read from GLV site the annunces posts and article @@ -21,15 +21,6 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: Convert from annunce the values of attribute 'title' into array - id: annunce-title - run: echo "::set-output name=array::$(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }} | jq -c '.posts | map(.title)')" - - run: echo ${{steps.annunce-title.array}} - - name: Convert from annunce the values of attribute 'url' into array - id: annunce-url - env: - LIST: $(echo \"${{ steps.read-announce-data.outputs.response }}\" | jq -c \".posts | map(.url)\") - run: echo "::set-output name=array::'$LIST'" publish-matrix: needs: prepare-annunce From 28e9b868e4fd29d2b3042d2c55e5dd954522fd70 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:43:05 +0200 Subject: [PATCH 059/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 20d35df..c8ce989 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,8 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - + - run: echo ${{ steps.read-announce-data.outputs.response.*.title }} + - run: echo ${{ steps.read-announce-data.outputs.response.*.url }} publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 From 941393c6a06e73b893328aaf433b7bae6011f677 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:50:04 +0200 Subject: [PATCH 060/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c8ce989..71e4adb 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - titles: ${{ steps.read-announce-data.outputs.response.*.title }} - urls: ${{ steps.read-announce-data.outputs.response.*.url }} + titles: ${{ fromJson(steps.read-announce-data.outputs.response.*.title) }} + urls: ${{ fromJson(steps.read-announce-data.outputs.response.*.url) }} steps: - name: Read from GLV site the annunces posts and article @@ -21,8 +21,8 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ steps.read-announce-data.outputs.response.*.title }} - - run: echo ${{ steps.read-announce-data.outputs.response.*.url }} + - run: echo ${{ fromJson(steps.read-announce-data.outputs.response.*.title) }} + - run: echo ${{ fromJson(steps.read-announce-data.outputs.response.*.url) }} publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 From 701223d223eef4d93c26b2e199afd3fbb0d7bf7e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:53:25 +0200 Subject: [PATCH 061/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 71e4adb..717f87b 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - titles: ${{ fromJson(steps.read-announce-data.outputs.response.*.title) }} - urls: ${{ fromJson(steps.read-announce-data.outputs.response.*.url) }} + titles: ${{ steps.read-announce-data.outputs.response.*.title }} + urls: ${{ steps.read-announce-data.outputs.response.*.url }} steps: - name: Read from GLV site the annunces posts and article @@ -21,15 +21,14 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ fromJson(steps.read-announce-data.outputs.response.*.title) }} - - run: echo ${{ fromJson(steps.read-announce-data.outputs.response.*.url) }} + publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: matrix: - titles: ${{ needs.prepare-annunce.outputs.titles }} - urls: ${{ needs.prepare-annunce.outputs.urls }} + titles: ${{ fromJson(needs.prepare-annunce.outputs.titles) }} + urls: ${{ fromJson(needs.prepare-annunce.outputs.urls) }} steps: - run: echo "${{ needs.prepare-annunce.outputs.titles }}" - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From 107dbdc2f7b8fa2958cc40d90cde9647c4c67868 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 12:55:33 +0200 Subject: [PATCH 062/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 717f87b..a4b5276 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - titles: ${{ steps.read-announce-data.outputs.response.*.title }} - urls: ${{ steps.read-announce-data.outputs.response.*.url }} + matrix: ${{ steps.read-announce-data.outputs.response.posts }} steps: - name: Read from GLV site the annunces posts and article @@ -21,14 +20,12 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - + publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 strategy: - matrix: - titles: ${{ fromJson(needs.prepare-annunce.outputs.titles) }} - urls: ${{ fromJson(needs.prepare-annunce.outputs.urls) }} + matrix: ${{ fromJson(needs.prepare-annunce.outputs.matrix) }} steps: - run: echo "${{ needs.prepare-annunce.outputs.titles }}" - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From b61b00bed5890abe2885908f4346087d8bd42873 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:00:57 +0200 Subject: [PATCH 063/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index a4b5276..df37e01 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,11 +21,12 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' + - run: echo ${{ fromJson(steps.read-announce-data.outputs.response.posts) }} + publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 - strategy: - matrix: ${{ fromJson(needs.prepare-annunce.outputs.matrix) }} + steps: - run: echo "${{ needs.prepare-annunce.outputs.titles }}" - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From 9f4daad328b68fb3bb1ef7079a781e2df2b83f32 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:02:25 +0200 Subject: [PATCH 064/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index df37e01..810dcbe 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ fromJson(steps.read-announce-data.outputs.response.posts) }} + - run: echo ${{ steps.read-announce-data.outputs.response.posts }} publish-matrix: needs: prepare-annunce From ba717aae5ba36b777de48e04c6a0beb55f804f6a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:08:20 +0200 Subject: [PATCH 065/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 810dcbe..704f9ff 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,11 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ steps.read-announce-data.outputs.response.posts }} + - run: echo ${{ steps.read-announce-data.outputs.response }} + - name: Get Json + id: get-json + run: echo "::set-output name=data::$(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }})" + - run: echo ${{ steps.get-json.data}} publish-matrix: needs: prepare-annunce From ae5266a967c419db9a68404d4466522d50e01eb3 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:10:09 +0200 Subject: [PATCH 066/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 704f9ff..1ddc040 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,11 +21,8 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ steps.read-announce-data.outputs.response }} - - name: Get Json - id: get-json - run: echo "::set-output name=data::$(curl -s ${{ secrets.GLV_SITE_ANNOUNCE_DATA }})" - - run: echo ${{ steps.get-json.data}} + - run: echo ${{ steps.read-announce-data.outputs.response.posts }} + publish-matrix: needs: prepare-annunce From 45351edea8d71f0e136829d0eecbafa7c66fc360 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:11:45 +0200 Subject: [PATCH 067/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 1ddc040..cced65a 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ steps.read-announce-data.outputs.response.posts }} + - run: echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) }} publish-matrix: From a0628d0fd6f1fbb07a3c95c8022808238c3bc5d2 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:13:02 +0200 Subject: [PATCH 068/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index cced65a..dfcfb45 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) }} + - run: echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} publish-matrix: From fbadacdfc86305e4ff22506c5620e4d7f6d4b416 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:17:31 +0200 Subject: [PATCH 069/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index dfcfb45..2726c0f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ steps.read-announce-data.outputs.response.posts }} + matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) steps: - name: Read from GLV site the annunces posts and article @@ -29,5 +29,5 @@ jobs: runs-on: ubuntu-18.04 steps: - - run: echo "${{ needs.prepare-annunce.outputs.titles }}" + - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).posts.*.title) }}" - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From 6316077dea6ed81b2cfd14c4a21c70ff96b9cf25 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:18:13 +0200 Subject: [PATCH 070/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 2726c0f..4e4a850 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) + matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) }} steps: - name: Read from GLV site the annunces posts and article From 7a298de548d367a9dfcf156e96badaa6cb51adf5 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:19:16 +0200 Subject: [PATCH 071/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4e4a850..80ba1dc 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,7 +21,7 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + - run: echo "${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}" publish-matrix: From 1a463243cf143c368ef26c62377b508489fdd52e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:21:14 +0200 Subject: [PATCH 072/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 80ba1dc..83d3fac 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -29,5 +29,5 @@ jobs: runs-on: ubuntu-18.04 steps: - - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).posts.*.title) }}" + - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From 3f88d58fc85e6dde49b157234c9b2172be11fafe Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:22:50 +0200 Subject: [PATCH 073/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 83d3fac..241973e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts) }} + matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*) }} steps: - name: Read from GLV site the annunces posts and article @@ -29,5 +29,5 @@ jobs: runs-on: ubuntu-18.04 steps: - - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" + - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix)) }}" - run: echo "${{ needs.prepare-annunce.outputs.urls }}" From 7d8bc03bc40653ddab7dc9fb1c8e06cf06f86189 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:25:26 +0200 Subject: [PATCH 074/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 241973e..47b1aa7 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -29,5 +29,5 @@ jobs: runs-on: ubuntu-18.04 steps: - - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix)) }}" - - run: echo "${{ needs.prepare-annunce.outputs.urls }}" + - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" + - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url }}" From 611b87ee0bfdac766950265c9afbbc8ef23d172c Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:26:08 +0200 Subject: [PATCH 075/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 47b1aa7..4b87384 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -30,4 +30,4 @@ jobs: steps: - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" - - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url }}" + - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}" From e929ce0a8c74b59bd11e02776f2ea3c82053ec97 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:29:34 +0200 Subject: [PATCH 076/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4b87384..3cd5713 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,13 +21,13 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - run: echo "${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}" - - publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 - + strategy: + matrix: + titles: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }} + urls: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} steps: - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}" From 3fc6545ff1a62942ce370d3801f56115ff0de033 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:31:12 +0200 Subject: [PATCH 077/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 3cd5713..acc87b0 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,8 +26,8 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - titles: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }} - urls: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} + titles: ${{ fromJson(needs.prepare-annunce.outputs.matrix).*.title }} + urls: ${{ fromJson(needs.prepare-annunce.outputs.matrix).*.url }} steps: - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}" From beea7355efb30167d991a765f69627f98ad35925 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:39:22 +0200 Subject: [PATCH 078/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index acc87b0..d44e8f5 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,8 +26,12 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - titles: ${{ fromJson(needs.prepare-annunce.outputs.matrix).*.title }} - urls: ${{ fromJson(needs.prepare-annunce.outputs.matrix).*.url }} + titles: ${{ steps.set-titles.array }} + urls: ${{ steps.set-urls.array }} steps: - - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}" - - run: echo "${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}" + - name: Set array of titles + id: set-titles + run: echo "::set-output name=array::'${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}'" + - name: Set array of urls + id: set-urls + run: echo "::set-output name=array::'${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}'" From e3ae42dde055859d9c6b027ff9d792479e3f9c55 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:43:35 +0200 Subject: [PATCH 079/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d44e8f5..3fb1b1d 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -24,10 +24,7 @@ jobs: publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 - strategy: - matrix: - titles: ${{ steps.set-titles.array }} - urls: ${{ steps.set-urls.array }} + steps: - name: Set array of titles id: set-titles @@ -35,3 +32,8 @@ jobs: - name: Set array of urls id: set-urls run: echo "::set-output name=array::'${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}'" + + strategy: + matrix: + titles: ${{ steps.set-titles.array }} + urls: ${{ steps.set-urls.array }} From bd506726f1e372c5b0fce878bea7c67acff71a5a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:48:20 +0200 Subject: [PATCH 080/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 3fb1b1d..8fe3ecf 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -24,16 +24,9 @@ jobs: publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 - + env: + TITLES: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }} + URLS: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} steps: - - name: Set array of titles - id: set-titles - run: echo "::set-output name=array::'${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }}'" - - name: Set array of urls - id: set-urls - run: echo "::set-output name=array::'${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }}'" - - strategy: - matrix: - titles: ${{ steps.set-titles.array }} - urls: ${{ steps.set-urls.array }} + - run: echo ${{ TITLES }} + - run: echo ${{ URLS }} \ No newline at end of file From ea53ef28625bcd3e35f2bc20dc6ab758f9fa224b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:50:37 +0200 Subject: [PATCH 081/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 8fe3ecf..592ffeb 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -28,5 +28,5 @@ jobs: TITLES: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }} URLS: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} steps: - - run: echo ${{ TITLES }} - - run: echo ${{ URLS }} \ No newline at end of file + - run: echo $TITLES + - run: echo $URLS \ No newline at end of file From 13461ae7dc11ae2053f1fc185a73600d12cf4271 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 13:52:29 +0200 Subject: [PATCH 082/165] Test title convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 592ffeb..5d1f127 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -27,6 +27,10 @@ jobs: env: TITLES: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }} URLS: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} + strategy: + matrix: + titles: $TITLES + urls: $URLS steps: - run: echo $TITLES - run: echo $URLS \ No newline at end of file From 1e8598ae0aeccefd2388e1779278e9e683dd2c3b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 14:22:29 +0200 Subject: [PATCH 083/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 5d1f127..88db68d 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -29,8 +29,8 @@ jobs: URLS: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} strategy: matrix: - titles: $TITLES - urls: $URLS + titles: ${{env.publish-matrix.TITLES}} + urls: ${{env.publish-matrix.URLS}} steps: - run: echo $TITLES - run: echo $URLS \ No newline at end of file From 2874dcce120a3c42f07e71620d1fa6692a426c35 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 14:50:15 +0200 Subject: [PATCH 084/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 88db68d..fa139ab 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*) }} + matrix: ${{ toJson(fromJson(join()) }} + steps: - name: Read from GLV site the annunces posts and article @@ -20,17 +21,21 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' + - name: Make matrix structure + id: make-matrix-to-send + env: + TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + TITLE_LABEL: ${{"{\"titles\":"}} + URL_LABEL: ${{",\"urls\":"}} + MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 - env: - TITLES: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.title) }} - URLS: ${{ toJson(fromJson(needs.prepare-annunce.outputs.matrix).*.url) }} + strategy: - matrix: - titles: ${{env.publish-matrix.TITLES}} - urls: ${{env.publish-matrix.URLS}} + matrix: ${{fromJson(needs.prepare-annunce.outputs.matrix)}} steps: - run: echo $TITLES - run: echo $URLS \ No newline at end of file From 9a5d4774508bb41b41f27500a944b64b1408823f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 14:52:07 +0200 Subject: [PATCH 085/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index fa139ab..4957928 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -12,7 +12,12 @@ jobs: runs-on: ubuntu-18.04 outputs: matrix: ${{ toJson(fromJson(join()) }} - + env: + TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + TITLE_LABEL: ${{"{\"titles\":"}} + URL_LABEL: ${{",\"urls\":"}} + MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} steps: - name: Read from GLV site the annunces posts and article @@ -21,14 +26,8 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: Make matrix structure - id: make-matrix-to-send - env: - TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} - TITLE_LABEL: ${{"{\"titles\":"}} - URL_LABEL: ${{",\"urls\":"}} - MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} + - run: echo $MATRIX + publish-matrix: needs: prepare-annunce From bc9c19133762ce3f4eea61d5b6ce09938076c490 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 14:53:26 +0200 Subject: [PATCH 086/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4957928..3338d3f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ toJson(fromJson(join()) }} + matrix: ${{ env.prepare-annunce.MATRIX }} env: TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} From e620712cbdf1acf372aa597573b1f5de126c7068 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 14:54:32 +0200 Subject: [PATCH 087/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 3338d3f..455d01e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -12,13 +12,6 @@ jobs: runs-on: ubuntu-18.04 outputs: matrix: ${{ env.prepare-annunce.MATRIX }} - env: - TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} - TITLE_LABEL: ${{"{\"titles\":"}} - URL_LABEL: ${{",\"urls\":"}} - MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} - steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -27,7 +20,12 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - run: echo $MATRIX - + env: + TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + TITLE_LABEL: ${{"{\"titles\":"}} + URL_LABEL: ${{",\"urls\":"}} + MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} publish-matrix: needs: prepare-annunce From 1748829984c28e92ea89b2a6a65151b53429b2ad Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 14:59:53 +0200 Subject: [PATCH 088/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 455d01e..123317e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,8 +21,8 @@ jobs: method: 'GET' - run: echo $MATRIX env: - TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + TITLES: ${{ toJson(fromJson(jobs.prepare-annunce.steps.read-announce-data.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(jobs.prepare-annunce.steps.read-announce-data.outputs.response).posts.*.url) }} TITLE_LABEL: ${{"{\"titles\":"}} URL_LABEL: ${{",\"urls\":"}} MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} From 1043c7bf8f22b6bb427c898e10e4bfb6d4113aa7 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:02:09 +0200 Subject: [PATCH 089/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 123317e..2c771fd 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -14,18 +14,19 @@ jobs: matrix: ${{ env.prepare-annunce.MATRIX }} steps: - name: Read from GLV site the annunces posts and article + env: + TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + TITLE_LABEL: ${{"{\"titles\":"}} + URL_LABEL: ${{",\"urls\":"}} + MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} uses: fjogeleit/http-request-action@master id: read-announce-data with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - run: echo $MATRIX - env: - TITLES: ${{ toJson(fromJson(jobs.prepare-annunce.steps.read-announce-data.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(jobs.prepare-annunce.steps.read-announce-data.outputs.response).posts.*.url) }} - TITLE_LABEL: ${{"{\"titles\":"}} - URL_LABEL: ${{",\"urls\":"}} - MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} + publish-matrix: needs: prepare-annunce From b58d89c7a76e8100748481c551e59557a768a0ef Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:03:14 +0200 Subject: [PATCH 090/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 2c771fd..dc334cc 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -17,8 +17,8 @@ jobs: env: TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} - TITLE_LABEL: ${{"{\"titles\":"}} - URL_LABEL: ${{",\"urls\":"}} + TITLE_LABEL: "{\"titles\":" + URL_LABEL: ",\"urls\":" MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} uses: fjogeleit/http-request-action@master id: read-announce-data From 7020cf05aa06353d9873e065db5286282433328f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:04:21 +0200 Subject: [PATCH 091/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index dc334cc..9e5d60c 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -19,7 +19,7 @@ jobs: URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" - MATRIX: ${{toJson(fromJson($(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}")))}} + MATRIX: $(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}") uses: fjogeleit/http-request-action@master id: read-announce-data with: From a9df0e9e86a75bcd0c3f251153944301e9b30f17 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:05:49 +0200 Subject: [PATCH 092/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 9e5d60c..63dafb0 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -14,17 +14,17 @@ jobs: matrix: ${{ env.prepare-annunce.MATRIX }} steps: - name: Read from GLV site the annunces posts and article + uses: fjogeleit/http-request-action@master + id: read-announce-data + with: + url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' + method: 'GET' env: TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" MATRIX: $(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}") - uses: fjogeleit/http-request-action@master - id: read-announce-data - with: - url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' - method: 'GET' - run: echo $MATRIX From bea0a937cdecc376f788388881aea6dc5447c87c Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:07:00 +0200 Subject: [PATCH 093/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 63dafb0..dce99ba 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -24,7 +24,7 @@ jobs: URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" - MATRIX: $(echo"$TITL_LABEL$TITLES$URL_LABEL$URLS\}") + MATRIX: $(echo"$TITLE_LABEL$TITLES$URL_LABEL$URLS\}") - run: echo $MATRIX From 6f10d5253cf93df3273fd30a26666bb8e63ae971 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:08:24 +0200 Subject: [PATCH 094/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index dce99ba..13eab70 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -24,8 +24,8 @@ jobs: URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" - MATRIX: $(echo"$TITLE_LABEL$TITLES$URL_LABEL$URLS\}") - - run: echo $MATRIX + + - run: echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS\}" publish-matrix: From a11cf105a96dedecc3811f2cd5dc19f4b0b6f710 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:09:58 +0200 Subject: [PATCH 095/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 13eab70..c5b30e8 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -20,8 +20,8 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' env: - TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + TITLES: ${{ toJson(fromJson(response).posts.*.title) }} + URLS: ${{ toJson(fromJson(response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" From 084fa1305b159ac8cc74626e99b8d371cbde8062 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:12:28 +0200 Subject: [PATCH 096/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c5b30e8..82fc372 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -19,13 +19,15 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' + + - name: Create the matrix object + id: matrix-object env: - TITLES: ${{ toJson(fromJson(response).posts.*.title) }} - URLS: ${{ toJson(fromJson(response).posts.*.url) }} + TITLES: ${{ toJson(fromJson(steps.prepare-annunce.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(steps.prepare-annunce.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" - - - run: echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS\}" + run: echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS\}" publish-matrix: From 893c9c8abff80d394d70dbeb6b4cbd6a9e89b5e1 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:19:28 +0200 Subject: [PATCH 097/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 82fc372..19f6a52 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -19,7 +19,7 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - + - name: Create the matrix object id: matrix-object env: @@ -27,7 +27,8 @@ jobs: URLS: ${{ toJson(fromJson(steps.prepare-annunce.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" - run: echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS\}" + CLOSE: "}" + run: echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE" publish-matrix: From 99c009ef731b6e924d3009ace4cef2ea9b636ce9 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:21:20 +0200 Subject: [PATCH 098/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 19f6a52..05964ff 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,8 +23,8 @@ jobs: - name: Create the matrix object id: matrix-object env: - TITLES: ${{ toJson(fromJson(steps.prepare-annunce.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(steps.prepare-annunce.outputs.response).posts.*.url) }} + TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" CLOSE: "}" From 38c2780a09087780eb4a20311fa81f2eeb309a76 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:24:05 +0200 Subject: [PATCH 099/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 05964ff..bdb7e90 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ env.prepare-annunce.MATRIX }} + matrix: ${{ steps.matrix-object.outputs.matrix }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -28,7 +28,7 @@ jobs: TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" CLOSE: "}" - run: echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE" + run: echo "::set-output name=matrix::'$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE'" publish-matrix: From 44b01c5931a4a8bc1eef2b8c9de05f2a3d4c1877 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:27:29 +0200 Subject: [PATCH 100/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index bdb7e90..08f9088 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ steps.matrix-object.outputs.matrix }} + matrix: ${{ steps.matrix-object.env.MATRIX }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -28,7 +28,8 @@ jobs: TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" CLOSE: "}" - run: echo "::set-output name=matrix::'$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE'" + MATRIX: $(echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE") + run: echo "$MATRIX" publish-matrix: From 9734db9c1ecaf655d20fe04997fe493b6fa2aee8 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:31:18 +0200 Subject: [PATCH 101/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 08f9088..495ed8f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -28,8 +28,9 @@ jobs: TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" CLOSE: "}" - MATRIX: $(echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE") - run: echo "$MATRIX" + MATRIX: ${{}} + run: matrix=$(echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE") + - run: echo $matrix publish-matrix: From 7d875ac2d580b13c2f4639c4764293b455e4c485 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 15:33:21 +0200 Subject: [PATCH 102/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 495ed8f..c9acaa3 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,7 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ steps.matrix-object.env.MATRIX }} + matrix: ${{ steps.matrix-object.outputs.matrix }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -28,9 +28,8 @@ jobs: TITLE_LABEL: "{\"titles\":" URL_LABEL: ",\"urls\":" CLOSE: "}" - MATRIX: ${{}} run: matrix=$(echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE") - - run: echo $matrix + - run: echo $${{steps.matrix-object.outputs.matrix}} publish-matrix: From 58831a602ba63cd62443105411e1c147b0d284be Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 16:01:26 +0200 Subject: [PATCH 103/165] Convert attribute values into array --- .github/workflows/publish-on-social.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c9acaa3..0701fc6 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,7 +11,8 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: - matrix: ${{ steps.matrix-object.outputs.matrix }} + titles: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + urls: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -20,16 +21,6 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - name: Create the matrix object - id: matrix-object - env: - TITLES: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - URLS: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} - TITLE_LABEL: "{\"titles\":" - URL_LABEL: ",\"urls\":" - CLOSE: "}" - run: matrix=$(echo "$TITLE_LABEL$TITLES$URL_LABEL$URLS$CLOSE") - - run: echo $${{steps.matrix-object.outputs.matrix}} publish-matrix: @@ -37,7 +28,9 @@ jobs: runs-on: ubuntu-18.04 strategy: - matrix: ${{fromJson(needs.prepare-annunce.outputs.matrix)}} + matrix: + titles: ${{fromJson(needs.prepare-annunce.outputs.titles)}} + urls: ${{fromJson(needs.prepare-annunce.outputs.urls)}} steps: - - run: echo $TITLES - - run: echo $URLS \ No newline at end of file + - run: echo ${{matrix.titles}} + - run: echo ${{matrix.urls}} \ No newline at end of file From 7bf11fbe94242e83f1db6864de47c0e99fdcefc6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 17:56:54 +0200 Subject: [PATCH 104/165] Generate matrix from annunce posts --- .github/workflows/publish-on-social.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 0701fc6..35191aa 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -21,8 +21,6 @@ jobs: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' - - publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 @@ -32,5 +30,6 @@ jobs: titles: ${{fromJson(needs.prepare-annunce.outputs.titles)}} urls: ${{fromJson(needs.prepare-annunce.outputs.urls)}} steps: - - run: echo ${{matrix.titles}} - - run: echo ${{matrix.urls}} \ No newline at end of file + - run: | + echo ${{matrix.titles}} + echo ${{matrix.urls}} \ No newline at end of file From 3c0f960c77512c76c5524fd9fa778dc4ee8015b8 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:07:04 +0200 Subject: [PATCH 105/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 35191aa..22ee7f6 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -20,6 +20,15 @@ jobs: with: url: '${{ secrets.GLV_SITE_ANNOUNCE_DATA }}' method: 'GET' + - name: Count how posts are annunced + id: count-post + env: + post-number: $(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') + post-counter: $(echo "[ $(seq -s ", " $post-number) ]") + run: | + echo $post-number + echo $post-counter + publish-matrix: needs: prepare-annunce From dfc9b6d9747f078a723f9dfb45d110bdabb20aa3 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:10:33 +0200 Subject: [PATCH 106/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 22ee7f6..b7b160b 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,11 +23,11 @@ jobs: - name: Count how posts are annunced id: count-post env: - post-number: $(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') - post-counter: $(echo "[ $(seq -s ", " $post-number) ]") + POSTnumber: $(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') + POSTcounter: $(echo "[ $(seq -s ", " $POSTnumber) ]") run: | - echo $post-number - echo $post-counter + echo $POSTnumber + echo $POSTcounter publish-matrix: From d8dd4a07841b8d03e70add5125a22d9e83dc911b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:17:49 +0200 Subject: [PATCH 107/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index b7b160b..49b304e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,8 +26,8 @@ jobs: POSTnumber: $(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') POSTcounter: $(echo "[ $(seq -s ", " $POSTnumber) ]") run: | - echo $POSTnumber - echo $POSTcounter + POSTnumber=$(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') + POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") publish-matrix: From 926e1dc7a8881933a15bfa6bf7bd0606dda3a9d2 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:21:52 +0200 Subject: [PATCH 108/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 49b304e..c7fce08 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,7 +26,7 @@ jobs: POSTnumber: $(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') POSTcounter: $(echo "[ $(seq -s ", " $POSTnumber) ]") run: | - POSTnumber=$(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') + POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") From 285ee37031704948c294b2b30e1716b8c3efa1bd Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:25:22 +0200 Subject: [PATCH 109/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c7fce08..5233062 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -23,11 +23,13 @@ jobs: - name: Count how posts are annunced id: count-post env: - POSTnumber: $(echo ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} | jq -c 'length') + POSTnumber: $(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') POSTcounter: $(echo "[ $(seq -s ", " $POSTnumber) ]") run: | POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") + echo $POSTnumber + echo $POSTcounter publish-matrix: From 0dc1879b2eb06bf8e61a46eb043309f4889ef727 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:28:43 +0200 Subject: [PATCH 110/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 5233062..e82a726 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -26,8 +26,6 @@ jobs: POSTnumber: $(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') POSTcounter: $(echo "[ $(seq -s ", " $POSTnumber) ]") run: | - POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') - POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") echo $POSTnumber echo $POSTcounter From d974038221c646719b20c4a6019bf29d69cbb15f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:31:12 +0200 Subject: [PATCH 111/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index e82a726..150622f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -22,10 +22,9 @@ jobs: method: 'GET' - name: Count how posts are annunced id: count-post - env: - POSTnumber: $(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') - POSTcounter: $(echo "[ $(seq -s ", " $POSTnumber) ]") run: | + POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') + POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") echo $POSTnumber echo $POSTcounter From 499ac7a60ea00243af546c48d62c36b753a8bf47 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:39:42 +0200 Subject: [PATCH 112/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 150622f..1ae4607 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -13,6 +13,7 @@ jobs: outputs: titles: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} urls: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + counter: ${{ steps.count-post.env.POSTCOUNTER }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -27,6 +28,8 @@ jobs: POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") echo $POSTnumber echo $POSTcounter + env: + POSTCOUNTER: $POSTcounter publish-matrix: @@ -35,9 +38,9 @@ jobs: strategy: matrix: - titles: ${{fromJson(needs.prepare-annunce.outputs.titles)}} - urls: ${{fromJson(needs.prepare-annunce.outputs.urls)}} + counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} + steps: - run: | - echo ${{matrix.titles}} - echo ${{matrix.urls}} \ No newline at end of file + echo ${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} + echo ${{fromJson(needs.prepare-annunce.outputs.urls)[matrix.counter]}} \ No newline at end of file From 6492a36a0d165e5e214cec5d47723b9efcd7fc12 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:43:14 +0200 Subject: [PATCH 113/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 1ae4607..7a369bc 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -13,7 +13,7 @@ jobs: outputs: titles: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} urls: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} - counter: ${{ steps.count-post.env.POSTCOUNTER }} + counter: ${{ steps.count-post.outputs.counter }} steps: - name: Read from GLV site the annunces posts and article uses: fjogeleit/http-request-action@master @@ -27,9 +27,7 @@ jobs: POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") echo $POSTnumber - echo $POSTcounter - env: - POSTCOUNTER: $POSTcounter + echo "::set-output name=counter::$POSTcounter" publish-matrix: From 08c1cd2c96018097f178d2d3f45fec85aa3f6b2d Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:49:30 +0200 Subject: [PATCH 114/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 7a369bc..4283abb 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -25,7 +25,8 @@ jobs: id: count-post run: | POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') - POSTcounter=$(echo "[ $(seq -s ", " $POSTnumber) ]") + POSTnumber=$POSTnumber-1 + POSTcounter=$(echo "[ $(seq -s ", " 0 $POSTnumber) ]") echo $POSTnumber echo "::set-output name=counter::$POSTcounter" From ade278f3d06442361a92334ac8c156c013f593bc Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 21:55:55 +0200 Subject: [PATCH 115/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4283abb..5b1e685 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -25,7 +25,7 @@ jobs: id: count-post run: | POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') - POSTnumber=$POSTnumber-1 + POSTnumber=$(($POSTnumber - 1)) POSTcounter=$(echo "[ $(seq -s ", " 0 $POSTnumber) ]") echo $POSTnumber echo "::set-output name=counter::$POSTcounter" From da942e325080b49c39f1f2c85ecfc69bf1256505 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 23:12:53 +0200 Subject: [PATCH 116/165] Generate annunced posts counter --- .github/workflows/publish-on-social.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 5b1e685..630684a 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -27,14 +27,11 @@ jobs: POSTnumber=$(echo '${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }}' | jq -c 'length') POSTnumber=$(($POSTnumber - 1)) POSTcounter=$(echo "[ $(seq -s ", " 0 $POSTnumber) ]") - echo $POSTnumber echo "::set-output name=counter::$POSTcounter" - publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 - strategy: matrix: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} From 8b92be492a330541db8573eb72e83deca3ba6194 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 23:15:25 +0200 Subject: [PATCH 117/165] Add promemorias to use comunication inter-jobs and strategy.matrix --- Notes.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Notes.md diff --git a/Notes.md b/Notes.md new file mode 100644 index 0000000..b981189 --- /dev/null +++ b/Notes.md @@ -0,0 +1,39 @@ +# Workflow and Github Actions notes + +```yaml + prepare-annunce: + runs-on: ubuntu-18.04 + outputs: + titles: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} + urls: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + counter: ${{ steps.count-post.outputs.counter }} +``` + +Il job *prepare-annunce* viene eseguito su un agent *ubuntu-18.04* e genera gli output: *titles*, *urls*, *counter*. + +**titles**: è un array JSON che contiene i titoli dei post in *annunce.data* pronti per essere annunciati + +**urls**: è un array JSON che contiene le url alle pagine di pubblicazione dei post in *annunce.data* pronti per essere annunciati. + +**counter**: è un vettore JSON che contiene un cursore autogenerato necessario al job successivo per la visita dei vettori con i dati di pubblicazione. + +**fromJson**: è una funzione d'infrastruttura che converte stringa in oggetto JSON. + +**toJson**: è una funziona d'infrastruttura che converte da oggetto in stringa JSON. + +```yaml + publish-matrix: + needs: prepare-annunce + runs-on: ubuntu-18.04 + strategy: + matrix: + counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} + steps: + - run: | + echo ${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} + echo ${{fromJson(needs.prepare-annunce.outputs.urls)[matrix.counter]}} +``` + +**needs**: definisce il jobs da cui dipende l'esecuzione del job corrente e l'oggetto interfaccia da cui acquisire le variabili di uscita da utilizzare all'interno del jobs. + +**strategy.matrix**: definisce un elenco di job paralleli (fino ad un massimo di 256) che sono il prodotto del numero di elementi presenti nei attributi assegnati all'oggetto *matrix* come, ad esempio, *counter*. Gli attributi di *matrix* sono oggetti vettoriali JSON. \ No newline at end of file From 21123828ccecdb7868c803c176ee0edb6ef4d28f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 19 May 2020 23:16:28 +0200 Subject: [PATCH 118/165] Add annunce.data template to list annunce attributes --- annunce.data.template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 annunce.data.template diff --git a/annunce.data.template b/annunce.data.template new file mode 100644 index 0000000..46d1cf0 --- /dev/null +++ b/annunce.data.template @@ -0,0 +1,26 @@ +[publish info] +{{- $cutDate := now.AddDate -100 0 -2 }} +cut-over-date={{ $cutDate }} +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{ range where $pctx.RegularPages "Date" "ge" $cutDate }} +[post] +{{- $lang := .Lang }} +lang={{ $lang }} +title={{ .Title }} +link={{ .Permalink }} +date={{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} +summary={{ .Summary }} + {{- range .Params.authors }} + [post.author] + {{- $nick := . -}} + {{- with index $.Site.Data.authors $nick }} + nick={{ $nick }} + name={{ .DisplayName }} + {{- range .Social }} + social-{{ .Name | urlize }}="{{ .Value }}" + social-{{ .Name | urlize }}-url="{{ .Url }}" + {{- end -}} + {{- end -}} + {{- end -}} +{{- end -}} \ No newline at end of file From 198d285ead3926d1fa74ab8891044d47ef28958a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 18:58:47 +0200 Subject: [PATCH 119/165] Manage complete annunce structure --- .github/workflows/publish-on-social.yml | 12 +++++- annunce.data | 52 +++++++++++++++---------- 2 files changed, 41 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 630684a..4a9af73 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -11,8 +11,12 @@ jobs: prepare-annunce: runs-on: ubuntu-18.04 outputs: + langs: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.lang) }} titles: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - urls: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} + links: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.link) }} + dates: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.date) }} + summaries: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.summary) }} + authors: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.authors) }} counter: ${{ steps.count-post.outputs.counter }} steps: - name: Read from GLV site the annunces posts and article @@ -38,5 +42,9 @@ jobs: steps: - run: | + echo ${{fromJson(needs.prepare-annunce.outputs.langs)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} - echo ${{fromJson(needs.prepare-annunce.outputs.urls)[matrix.counter]}} \ No newline at end of file + echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} + echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} + echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} + echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}} \ No newline at end of file diff --git a/annunce.data b/annunce.data index 7be25b8..976f943 100644 --- a/annunce.data +++ b/annunce.data @@ -1,26 +1,36 @@ { "publish-info": { - "cut-over-date": "2020-05-17 04:04:49.892153138 +0000 UTC" + "cut-over-date": "2020-05-07 15:54:29.6296788 +0100 BST" }, - "posts": - [{ - "title": "Organizzazione account in Azure DevOps: Security dei WorkItem", - "url": "http://www.getlatestversion.eu/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/" - }, + "posts": [ { - "title": "Gestire progetti utilizzando le Wiki di Azure DevOps", - "url": "http://www.getlatestversion.eu/it/2020/05/gestire-progetti-utilizzando-le-wiki-di-azure-devops/" - }, - { - "title": "Organizzazione account in Azure DevOps", - "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops/" - }, - { - "title": "Organizzazione account in Azure DevOps: Security", - "url": "http://www.getlatestversion.eu/it/2020/04/organizzazione-account-in-azure-devops-security/" - }, - { - "title": "Evidenziare gli impedimenti in una kanban board su Azure DevOps", - "url": "http://www.getlatestversion.eu/it/2020/04/evidenziare-gli-impedimenti-in-una-kanban-board-su-azure-devops/" + "lang": "it", + "title": "Organizzazione account in Azure DevOps: Security dei WorkItem", + "link": "https://stagegetlatestversioneu.z6.web.core.windows.net/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", + "date": "2020-05-11 00:00:38 +0100 BST", + "summary": "Utilizzare la security delle Aree per gestire la protezione dei Work Item dei differenti teamsd.", + "authors": [ + { + "nick": "alkampfer", + "name": "Gian Maria Ricci", + "social": { + "twitter": { + "name": "@alkampfer", + "url": "https://twitter.com/alkampfer" + }, + "github": { + "name": "alkampfergit", + "url": "https://github.com/alkampfergit" + }, + "web-site": { + "name": "http://www.codewrecks.com/", + "url": "http://www.codewrecks.com/" + }, + "linkedin": { + "name": "https://www.linkedin.com/in/gianmariaricci", + "url": "https://www.linkedin.com/in/gianmariaricci" + } + } + }] }] -} \ No newline at end of file +} From 2f2029c8412aa351846051d879e58373933afa3e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 19:01:36 +0200 Subject: [PATCH 120/165] Manage complete annunce structure --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4a9af73..cabbc9e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -47,4 +47,4 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} - echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}} \ No newline at end of file + echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].[0])}} \ No newline at end of file From eb4af56d1aee8f17a13f50524507724096c4aa93 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 19:03:54 +0200 Subject: [PATCH 121/165] Manage complete annunce structure --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index cabbc9e..d2eb9ab 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -47,4 +47,4 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} - echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].[0])}} \ No newline at end of file + echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*)}} \ No newline at end of file From 89a044c2bf5225538c12571cc78e01dcda049afa Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 19:06:16 +0200 Subject: [PATCH 122/165] Manage complete annunce structure --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d2eb9ab..c79f1c2 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -47,4 +47,4 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} - echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*)}} \ No newline at end of file + echo ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick} \ No newline at end of file From 1a28c21ff3655dcbe146b7e9fcf3dc5f75645eef Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 19:07:36 +0200 Subject: [PATCH 123/165] Manage complete annunce structure --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c79f1c2..b515090 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -47,4 +47,4 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} - echo ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick} \ No newline at end of file + echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}} \ No newline at end of file From 45f7ac1fadc78917054102ff249046cb3a4b29c6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 19:15:59 +0200 Subject: [PATCH 124/165] Manage complete annunce structure --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index b515090..4a9af73 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -47,4 +47,4 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} - echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}} \ No newline at end of file + echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}} \ No newline at end of file From 505058c8773de3ab21a80ddcf93b74cbd4311fab Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 20 May 2020 21:15:46 +0200 Subject: [PATCH 125/165] Add single commas. --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 4a9af73..2662b54 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -47,4 +47,4 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} - echo ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}} \ No newline at end of file + echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' From 8eb0f03685a184b8c653f48a85f96f700811efba Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Thu, 21 May 2020 23:07:05 +0200 Subject: [PATCH 126/165] Add step to format social message --- .github/workflows/publish-on-social.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 2662b54..40e908a 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -40,11 +40,21 @@ jobs: matrix: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} + env: + AUTHORS: ${{fromJson('{[]}')}} + steps: - - run: | + - name: Verify Step + run: | echo ${{fromJson(needs.prepare-annunce.outputs.langs)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' + echo "::set-output name=AUTHORS::${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}}" + + - name: Create linked social linked + run: | + echo "::set-output name=NICK::${{toJson(AUTHORS.*.nick)}}" + From a9e689b7c9a2daa065b40466ea71f6465d3d3f17 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 17:51:02 +0200 Subject: [PATCH 127/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 40e908a..7094ad5 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson('{[]}')}} + AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} steps: - name: Verify Step @@ -56,5 +56,6 @@ jobs: - name: Create linked social linked run: | - echo "::set-output name=NICK::${{toJson(AUTHORS.*.nick)}}" + echo "::set-output name=NICK::${{toJson($AUTHORS.*.nick)}}" + echo $NICK From 893bb75cbf2d63754c68aa8578c85d39257bcf3b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 17:54:05 +0200 Subject: [PATCH 128/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 7094ad5..f5f0c75 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} + AUTHORS: ${{(needs.prepare-annunce.outputs.authors)[matrix.counter]}} steps: - name: Verify Step @@ -56,6 +56,6 @@ jobs: - name: Create linked social linked run: | - echo "::set-output name=NICK::${{toJson($AUTHORS.*.nick)}}" + echo "::set-output name=NICK::${{toJson(fromJson(env.AUTHORS).*.nick)}}" echo $NICK From ac5fcc790605100144baec0a5b877b0af8d2e93e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 17:56:35 +0200 Subject: [PATCH 129/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index f5f0c75..0f0f5c1 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -56,6 +56,6 @@ jobs: - name: Create linked social linked run: | - echo "::set-output name=NICK::${{toJson(fromJson(env.AUTHORS).*.nick)}}" + echo "::set-output name=NICK::${{fromJson(env.AUTHORS).*.nick}}" echo $NICK From 18bad8237dd0d980e2c241858135f0dffa462c23 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 17:59:01 +0200 Subject: [PATCH 130/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 0f0f5c1..6a43773 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{(needs.prepare-annunce.outputs.authors)[matrix.counter]}} + AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} steps: - name: Verify Step @@ -56,6 +56,6 @@ jobs: - name: Create linked social linked run: | - echo "::set-output name=NICK::${{fromJson(env.AUTHORS).*.nick}}" + echo "::set-output name=NICK::${{env.AUTHORS.*.nick}}" echo $NICK From 28411b27763c60ae4cb3bff4d9c4cc0c7961e15e Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:00:54 +0200 Subject: [PATCH 131/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 6a43773..d1cc5e9 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} + AUTHORS: ${{needs.prepare-annunce.outputs.authors[matrix.counter]}} steps: - name: Verify Step @@ -52,10 +52,10 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' - echo "::set-output name=AUTHORS::${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}}" + echo "::set-output name=AUTHORS::${{needs.prepare-annunce.outputs.authors)[matrix.counter]}}" - name: Create linked social linked run: | - echo "::set-output name=NICK::${{env.AUTHORS.*.nick}}" + echo "::set-output name=NICK::${{fromJson(env.AUTHORS).*.nick}}" echo $NICK From 2be9c4fdd6beb1b35770d52b060553553018c1e6 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:02:25 +0200 Subject: [PATCH 132/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d1cc5e9..6a43773 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{needs.prepare-annunce.outputs.authors[matrix.counter]}} + AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} steps: - name: Verify Step @@ -52,10 +52,10 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' - echo "::set-output name=AUTHORS::${{needs.prepare-annunce.outputs.authors)[matrix.counter]}}" + echo "::set-output name=AUTHORS::${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}}" - name: Create linked social linked run: | - echo "::set-output name=NICK::${{fromJson(env.AUTHORS).*.nick}}" + echo "::set-output name=NICK::${{env.AUTHORS.*.nick}}" echo $NICK From 88eea3e9935fcab51004bd4f1daa6cee71551b39 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:04:18 +0200 Subject: [PATCH 133/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 6a43773..1bc09d9 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} + AUTHORS: ${{fromJson([{}])}} steps: - name: Verify Step From 48bc321937d10791a0109911da74bb084ea930a2 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:05:21 +0200 Subject: [PATCH 134/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 1bc09d9..da549e3 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson([{}])}} + AUTHORS: ${{fromJson({[]})}} steps: - name: Verify Step From b4d8f408c4073507ea98bdd02a076a334ae447de Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:07:30 +0200 Subject: [PATCH 135/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index da549e3..f9157a5 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson({[]})}} + AUTHORS: '' steps: - name: Verify Step From 020deabf0be033d9f45041fcc30e221e65ee2f2b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:14:17 +0200 Subject: [PATCH 136/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index f9157a5..09de0ab 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -56,6 +56,6 @@ jobs: - name: Create linked social linked run: | - echo "::set-output name=NICK::${{env.AUTHORS.*.nick}}" + echo "::set-output name=NICK::${{toJson(env.AUTHORS.*.nick)}}" echo $NICK From 825566ddb03e71df39fed111bf7c1ecc0c99bad3 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:22:55 +0200 Subject: [PATCH 137/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 09de0ab..b36ef31 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: '' + AUTHOR: '' steps: - name: Verify Step @@ -52,10 +52,10 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' - echo "::set-output name=AUTHORS::${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}}" + echo "::set-output name=authors::${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}}" - name: Create linked social linked run: | - echo "::set-output name=NICK::${{toJson(env.AUTHORS.*.nick)}}" + echo "::set-output name=NICK::${{toJson(authors.*.nick)}}" echo $NICK From 1101cc2302574011dd9be0ef9372d04b7caffdb5 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:25:00 +0200 Subject: [PATCH 138/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index b36ef31..93062fe 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHOR: '' + AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} steps: - name: Verify Step @@ -52,10 +52,9 @@ jobs: echo ${{fromJson(needs.prepare-annunce.outputs.dates)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.summaries)[matrix.counter]}} echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' - echo "::set-output name=authors::${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}}" - name: Create linked social linked run: | - echo "::set-output name=NICK::${{toJson(authors.*.nick)}}" + echo "::set-output name=NICK::${{toJson(env.AUTHORS.*.nick)}}" echo $NICK From 46727b64f12bdda441deeef6d3b7d097eae3ed9f Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:26:25 +0200 Subject: [PATCH 139/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 93062fe..74c241e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -41,7 +41,7 @@ jobs: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} env: - AUTHORS: ${{fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter]}} + AUTHORS: ${{needs.prepare-annunce.outputs.authors[matrix.counter]}} steps: - name: Verify Step From 02d81fa847a53117ab86b12ec05349f8020c4b95 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Sun, 24 May 2020 18:37:32 +0200 Subject: [PATCH 140/165] Manage message element with environment --- .github/workflows/publish-on-social.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 74c241e..2d34bad 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -40,9 +40,6 @@ jobs: matrix: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} - env: - AUTHORS: ${{needs.prepare-annunce.outputs.authors[matrix.counter]}} - steps: - name: Verify Step run: | @@ -54,7 +51,8 @@ jobs: echo '${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter])}}' - name: Create linked social linked + id: make-message run: | - echo "::set-output name=NICK::${{toJson(env.AUTHORS.*.nick)}}" + echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}}" echo $NICK From c2b6d16e0d1e94bb62799859afed23586a2d1591 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 16:17:23 +0200 Subject: [PATCH 141/165] Send a tweet --- .github/workflows/publish-on-social.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 2d34bad..c525f33 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -55,4 +55,13 @@ jobs: run: | echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}}" echo $NICK - + + - name: Send Tweet with for annunced post/article + id: send-tweet + uses: ethomson/send-tweet-action@v1 + with: + status: "Hi, this is a test! by @giulianolatini" + consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} + consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} + access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} + access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} From faae35d25fa04995741ee33383b8d3cb677314f3 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 16:22:53 +0200 Subject: [PATCH 142/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index c525f33..369ccef 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -56,8 +56,8 @@ jobs: echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}}" echo $NICK - - name: Send Tweet with for annunced post/article - id: send-tweet + - name: Send Tweet with for annunced post or article + id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: status: "Hi, this is a test! by @giulianolatini" From 82581245f56ba1cddc562fa7e48e1b0137c9c140 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 16:24:41 +0200 Subject: [PATCH 143/165] Send a tweet --- .github/workflows/publish-on-social.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 369ccef..8f81b12 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -59,9 +59,9 @@ jobs: - name: Send Tweet with for annunced post or article id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 - with: - status: "Hi, this is a test! by @giulianolatini" - consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} - consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} - access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} - access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} + with: + status: "Hi, this is a test! by @giulianolatini" + consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} + consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} + access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} + access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} From 3c07c04c6d704695e75dfefd660075868b03ac18 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:38:04 +0200 Subject: [PATCH 144/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 8f81b12..1e0027f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -55,6 +55,8 @@ jobs: run: | echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}}" echo $NICK + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name)}}" + echo "::set-output name=ShortMessage::echo '$msgString'" - name: Send Tweet with for annunced post or article id: annunced-post-tweeted From ad29d477bbef5124b456efba29fabfad2cb09caa Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:41:34 +0200 Subject: [PATCH 145/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 1e0027f..dd2395f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -55,8 +55,8 @@ jobs: run: | echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name)}}" - echo "::set-output name=ShortMessage::echo '$msgString'" + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name[])}})" + echo "::set-output name=ShortMessage::echo $msgString" - name: Send Tweet with for annunced post or article id: annunced-post-tweeted From d048d4af2cd3b7785aa79b06a6921ec5e5f4187b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:42:47 +0200 Subject: [PATCH 146/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index dd2395f..f234e06 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -53,9 +53,9 @@ jobs: - name: Create linked social linked id: make-message run: | - echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick)}}" + echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick[0])}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name[])}})" + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name[0])}})" echo "::set-output name=ShortMessage::echo $msgString" - name: Send Tweet with for annunced post or article From 273e41bc9bc9fe2fe38d154dd890dcf211565f39 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:44:33 +0200 Subject: [PATCH 147/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index f234e06..9926922 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -56,7 +56,7 @@ jobs: echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick[0])}}" echo $NICK echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name[0])}})" - echo "::set-output name=ShortMessage::echo $msgString" + echo "::set-output name=ShortMessage::$msgString" - name: Send Tweet with for annunced post or article id: annunced-post-tweeted From 86ba2bb19f15351da0ceb94f41e7844e38f3a52d Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:48:00 +0200 Subject: [PATCH 148/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 9926922..38393c1 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -53,9 +53,9 @@ jobs: - name: Create linked social linked id: make-message run: | - echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick[0])}}" + echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick.*)}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name[0])}})" + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name.*)}}')" echo "::set-output name=ShortMessage::$msgString" - name: Send Tweet with for annunced post or article From 54c3406c025e76802eb8c462dc3bc1d229cf65c5 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:53:40 +0200 Subject: [PATCH 149/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 38393c1..6fb3c66 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -53,9 +53,9 @@ jobs: - name: Create linked social linked id: make-message run: | - echo "::set-output name=NICK::${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick.*)}}" + echo "::set-output name=NICK::${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick.*), ', ')}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name.*)}}')" + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name.*), ', ')}}')" echo "::set-output name=ShortMessage::$msgString" - name: Send Tweet with for annunced post or article From c2ca6bfe7c522455c7cbe59ef7ed68300414a221 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:54:49 +0200 Subject: [PATCH 150/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 6fb3c66..9e52e98 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: "Hi, this is a test! by @giulianolatini" + status: ${{steps.make-message.ShortMessage}} consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From ea3e49efaff6cc3ed867f7f6c9b9623a3dd90f29 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:56:52 +0200 Subject: [PATCH 151/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 9e52e98..efa23c7 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -53,9 +53,9 @@ jobs: - name: Create linked social linked id: make-message run: | - echo "::set-output name=NICK::${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick.*), ', ')}}" + echo "::set-output name=NICK::${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick), ', ')}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name.*), ', ')}}')" + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name), ', ')}}')" echo "::set-output name=ShortMessage::$msgString" - name: Send Tweet with for annunced post or article From 5980edc50a2a8cdb7465176f8ab8b5d829c33bfe Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 22:59:36 +0200 Subject: [PATCH 152/165] Send a tweet --- .github/workflows/publish-on-social.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index efa23c7..3a7f220 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -53,9 +53,9 @@ jobs: - name: Create linked social linked id: make-message run: | - echo "::set-output name=NICK::${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick), ', ')}}" + echo "::set-output name=NICK::${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick, ', ')}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(toJson(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name), ', ')}}')" + echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" echo "::set-output name=ShortMessage::$msgString" - name: Send Tweet with for annunced post or article From 29ebf366b270c0e15c2bb63c33ca316e38283a89 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:01:55 +0200 Subject: [PATCH 153/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 3a7f220..d3522e0 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: ${{steps.make-message.ShortMessage}} + status: '${{steps.make-message.ShortMessage}}' consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From 962fcdb1074bed1b73213553b4aafa7f8811fbed Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:04:38 +0200 Subject: [PATCH 154/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index d3522e0..bfc2d7e 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: '${{steps.make-message.ShortMessage}}' + status: '$msgString' consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From ac1402242b2de85827f18a72f58cb4e63625d9c0 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:06:45 +0200 Subject: [PATCH 155/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index bfc2d7e..aa38939 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: '$msgString' + status: $msgString consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From 9f401566fb859578e181d81d7b9ff835eed6b1b9 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:08:27 +0200 Subject: [PATCH 156/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index aa38939..178debc 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: $msgString + status: ${{msgString}} consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From 829fefbcf2d5d2beb0aaf2fdaecfdbe1eed06a78 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:11:03 +0200 Subject: [PATCH 157/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 178debc..75e3cd6 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: ${{msgString}} + status: ${{steps.make-message.msgString}} consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From fb6acb463b66b9bcd62e2898dd7e3382959d227b Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:13:39 +0200 Subject: [PATCH 158/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 75e3cd6..80ebb64 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -55,7 +55,7 @@ jobs: run: | echo "::set-output name=NICK::${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick, ', ')}}" echo $NICK - echo "msgString=$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" + echo "::set-output name=msgString::$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" echo "::set-output name=ShortMessage::$msgString" - name: Send Tweet with for annunced post or article From c6762d77c82c56f48540770ad14aadf0bfb8e2b9 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:23:31 +0200 Subject: [PATCH 159/165] Send a tweet --- .github/workflows/publish-on-social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 80ebb64..5124661 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -62,7 +62,7 @@ jobs: id: annunced-post-tweeted uses: ethomson/send-tweet-action@v1 with: - status: ${{steps.make-message.msgString}} + status: ${{steps.make-message.outputs.msgString}} consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} From 6351001c8004aba711b32ea40a7cbda23d0b85ab Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:26:10 +0200 Subject: [PATCH 160/165] Send a tweet --- .github/workflows/publish-on-social.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 5124661..0190b61 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -55,8 +55,7 @@ jobs: run: | echo "::set-output name=NICK::${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick, ', ')}}" echo $NICK - echo "::set-output name=msgString::$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" - echo "::set-output name=ShortMessage::$msgString" + echo "::set-output name=msgString::$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" - name: Send Tweet with for annunced post or article id: annunced-post-tweeted From c47552d59024c62153f3adda9386093f0b777b03 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Tue, 26 May 2020 23:32:14 +0200 Subject: [PATCH 161/165] Send a tweet --- .github/workflows/publish-on-social.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-social.yml b/.github/workflows/publish-on-social.yml index 0190b61..7370b6f 100644 --- a/.github/workflows/publish-on-social.yml +++ b/.github/workflows/publish-on-social.yml @@ -36,12 +36,15 @@ jobs: publish-matrix: needs: prepare-annunce runs-on: ubuntu-18.04 + env: + DEBUG: false strategy: matrix: counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} steps: - name: Verify Step + if: ${{env.DEBUG}} run: | echo ${{fromJson(needs.prepare-annunce.outputs.langs)[matrix.counter]}} echo ${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} @@ -53,9 +56,7 @@ jobs: - name: Create linked social linked id: make-message run: | - echo "::set-output name=NICK::${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.nick, ', ')}}" - echo $NICK - echo "::set-output name=msgString::$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" + echo "::set-output name=msgString::$(echo '${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} ${{fromJson(needs.prepare-annunce.outputs.links)[matrix.counter]}} by ${{join(fromJson(needs.prepare-annunce.outputs.authors)[matrix.counter].*.social.twitter.name, ', ')}}')" - name: Send Tweet with for annunced post or article id: annunced-post-tweeted From b97986734537f636210086331b7db2ebb647a605 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 27 May 2020 23:11:11 +0200 Subject: [PATCH 162/165] Personal notes not useful for repo --- Notes.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 Notes.md diff --git a/Notes.md b/Notes.md deleted file mode 100644 index b981189..0000000 --- a/Notes.md +++ /dev/null @@ -1,39 +0,0 @@ -# Workflow and Github Actions notes - -```yaml - prepare-annunce: - runs-on: ubuntu-18.04 - outputs: - titles: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.title) }} - urls: ${{ toJson(fromJson(steps.read-announce-data.outputs.response).posts.*.url) }} - counter: ${{ steps.count-post.outputs.counter }} -``` - -Il job *prepare-annunce* viene eseguito su un agent *ubuntu-18.04* e genera gli output: *titles*, *urls*, *counter*. - -**titles**: è un array JSON che contiene i titoli dei post in *annunce.data* pronti per essere annunciati - -**urls**: è un array JSON che contiene le url alle pagine di pubblicazione dei post in *annunce.data* pronti per essere annunciati. - -**counter**: è un vettore JSON che contiene un cursore autogenerato necessario al job successivo per la visita dei vettori con i dati di pubblicazione. - -**fromJson**: è una funzione d'infrastruttura che converte stringa in oggetto JSON. - -**toJson**: è una funziona d'infrastruttura che converte da oggetto in stringa JSON. - -```yaml - publish-matrix: - needs: prepare-annunce - runs-on: ubuntu-18.04 - strategy: - matrix: - counter: ${{fromJson(needs.prepare-annunce.outputs.counter)}} - steps: - - run: | - echo ${{fromJson(needs.prepare-annunce.outputs.titles)[matrix.counter]}} - echo ${{fromJson(needs.prepare-annunce.outputs.urls)[matrix.counter]}} -``` - -**needs**: definisce il jobs da cui dipende l'esecuzione del job corrente e l'oggetto interfaccia da cui acquisire le variabili di uscita da utilizzare all'interno del jobs. - -**strategy.matrix**: definisce un elenco di job paralleli (fino ad un massimo di 256) che sono il prodotto del numero di elementi presenti nei attributi assegnati all'oggetto *matrix* come, ad esempio, *counter*. Gli attributi di *matrix* sono oggetti vettoriali JSON. \ No newline at end of file From 5f04dccc51c796e3d77e5c415e9425a59f115f2a Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 27 May 2020 23:12:03 +0200 Subject: [PATCH 163/165] Data mock for testing --- annunce.data | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 annunce.data diff --git a/annunce.data b/annunce.data deleted file mode 100644 index 976f943..0000000 --- a/annunce.data +++ /dev/null @@ -1,36 +0,0 @@ -{ - "publish-info": { - "cut-over-date": "2020-05-07 15:54:29.6296788 +0100 BST" - }, - "posts": [ - { - "lang": "it", - "title": "Organizzazione account in Azure DevOps: Security dei WorkItem", - "link": "https://stagegetlatestversioneu.z6.web.core.windows.net/it/2020/05/organizzazione-account-in-azure-devops-security-dei-workitem/", - "date": "2020-05-11 00:00:38 +0100 BST", - "summary": "Utilizzare la security delle Aree per gestire la protezione dei Work Item dei differenti teamsd.", - "authors": [ - { - "nick": "alkampfer", - "name": "Gian Maria Ricci", - "social": { - "twitter": { - "name": "@alkampfer", - "url": "https://twitter.com/alkampfer" - }, - "github": { - "name": "alkampfergit", - "url": "https://github.com/alkampfergit" - }, - "web-site": { - "name": "http://www.codewrecks.com/", - "url": "http://www.codewrecks.com/" - }, - "linkedin": { - "name": "https://www.linkedin.com/in/gianmariaricci", - "url": "https://www.linkedin.com/in/gianmariaricci" - } - } - }] - }] -} From dd6452ff44777bbfdd84c44d7057de3296150d63 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 27 May 2020 23:13:16 +0200 Subject: [PATCH 164/165] Configuration of annunce.data generator not useful for repo --- annunce.data.template | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 annunce.data.template diff --git a/annunce.data.template b/annunce.data.template deleted file mode 100644 index 46d1cf0..0000000 --- a/annunce.data.template +++ /dev/null @@ -1,26 +0,0 @@ -[publish info] -{{- $cutDate := now.AddDate -100 0 -2 }} -cut-over-date={{ $cutDate }} -{{- $pctx := . -}} -{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{ range where $pctx.RegularPages "Date" "ge" $cutDate }} -[post] -{{- $lang := .Lang }} -lang={{ $lang }} -title={{ .Title }} -link={{ .Permalink }} -date={{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} -summary={{ .Summary }} - {{- range .Params.authors }} - [post.author] - {{- $nick := . -}} - {{- with index $.Site.Data.authors $nick }} - nick={{ $nick }} - name={{ .DisplayName }} - {{- range .Social }} - social-{{ .Name | urlize }}="{{ .Value }}" - social-{{ .Name | urlize }}-url="{{ .Url }}" - {{- end -}} - {{- end -}} - {{- end -}} -{{- end -}} \ No newline at end of file From 5a4d1954265225c8a09488207220f6fc64259dd4 Mon Sep 17 00:00:00 2001 From: Giuliano Latini Date: Wed, 27 May 2020 23:14:14 +0200 Subject: [PATCH 165/165] Configuration to use azure-pipeline for running jobs. --- azure-pipelines.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index aa91291..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -trigger: -- master - -pool: - vmImage: 'ubuntu-latest' - -steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' - -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script'