From 17a5b8c2fd8447f5b0f5cc6d702bd7d261a5ee24 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 11:42:13 +0200 Subject: [PATCH 001/129] remove default message --- .github/workflows/outdated-dependencies.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 00978b364d..d7296b01fb 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,7 +29,6 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" notify_when: "failure" notification_title: "outdated dependencies" From 8493973b4990a23a52a6a38e5077ea774ef9d501 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 11:50:39 +0200 Subject: [PATCH 002/129] check version --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index d7296b01fb..4f73eb1f3e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,7 +23,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - id: run_outdated - run: npm outdated >> "$GITHUB_OUTPUT" + run: npm version >> "$GITHUB_OUTPUT" - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From 19ae46bfc5a506da5bd3be2a25b8e1e170204714 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:02:30 +0200 Subject: [PATCH 003/129] Revert "check version" This reverts commit 8493973b4990a23a52a6a38e5077ea774ef9d501. --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 4f73eb1f3e..d7296b01fb 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,7 +23,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - id: run_outdated - run: npm version >> "$GITHUB_OUTPUT" + run: npm outdated >> "$GITHUB_OUTPUT" - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From 62afe24be8d6eec33d32a514e1a0fa7eb7692838 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:02:57 +0200 Subject: [PATCH 004/129] remove output --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index d7296b01fb..7e9108ba2e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,13 +23,13 @@ jobs: with: node-version: ${{ matrix.node-version }} - id: run_outdated - run: npm outdated >> "$GITHUB_OUTPUT" + run: npm outdated - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" + footer: "<{run_url}|View Run>" notify_when: "failure" notification_title: "outdated dependencies" env: From fcada72248cf561dd6e2f3ce3f061a1c05fcd447 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:06:03 +0200 Subject: [PATCH 005/129] Revert "remove output" This reverts commit 62afe24be8d6eec33d32a514e1a0fa7eb7692838. --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 7e9108ba2e..d7296b01fb 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,13 +23,13 @@ jobs: with: node-version: ${{ matrix.node-version }} - id: run_outdated - run: npm outdated + run: npm outdated >> "$GITHUB_OUTPUT" - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run>" + footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" notify_when: "failure" notification_title: "outdated dependencies" env: From 1b44e18a13b183d0404531976fef45829ce8ae7e Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:07:14 +0200 Subject: [PATCH 006/129] npm install --- .github/workflows/outdated-dependencies.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index d7296b01fb..992276392d 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,7 +22,10 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - id: run_outdated + - name: Install dependencies + run: npm install + - name: Check outdated dependencies + id: run_outdated run: npm outdated >> "$GITHUB_OUTPUT" - name: Report Status if: always() From f4889ecca6e37dbb8281e73313848eae49170991 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:08:37 +0200 Subject: [PATCH 007/129] try to print prevous step output --- .github/workflows/outdated-dependencies.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 992276392d..84a0205899 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -28,12 +28,14 @@ jobs: id: run_outdated run: npm outdated >> "$GITHUB_OUTPUT" - name: Report Status - if: always() - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" - notify_when: "failure" - notification_title: "outdated dependencies" - env: - SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + run: echo $GITHUB_OUTPUT + # - name: Report Status + # if: always() + # uses: ravsamhq/notify-slack-action@v2 + # with: + # status: ${{ job.status }} + # footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" + # notify_when: "failure" + # notification_title: "outdated dependencies" + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 2a4213f2c897e1d66fb8ba09665396ad126e81b7 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:09:53 +0200 Subject: [PATCH 008/129] comment install --- .github/workflows/outdated-dependencies.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 84a0205899..38cd880856 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,8 +22,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: npm install + # TODO: uncomment install + # - name: Install dependencies + # run: npm install - name: Check outdated dependencies id: run_outdated run: npm outdated >> "$GITHUB_OUTPUT" From 37444ec1b073339721289d98b88b4da0dd2d9f07 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:14:03 +0200 Subject: [PATCH 009/129] print into result --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 38cd880856..4c92c49ffa 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -13,8 +13,8 @@ jobs: strategy: matrix: node-version: [18] - # outputs: - # output: ${{ steps.run_outdated.outputs }} + outputs: + output: ${{ steps.run_outdated.outputs.result }} steps: - name: Git checkout uses: actions/checkout@v2 @@ -27,7 +27,7 @@ jobs: # run: npm install - name: Check outdated dependencies id: run_outdated - run: npm outdated >> "$GITHUB_OUTPUT" + run: echo "result=$(npm outdated)" >> "$GITHUB_OUTPUT" - name: Report Status run: echo $GITHUB_OUTPUT # - name: Report Status From 6c07c2b6dbecf91f9706ddebeac838a64de1f21f Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:15:42 +0200 Subject: [PATCH 010/129] remove matrix --- .github/workflows/outdated-dependencies.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 4c92c49ffa..3b342ca0db 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -10,18 +10,15 @@ on: jobs: check: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18] outputs: output: ${{ steps.run_outdated.outputs.result }} steps: - name: Git checkout uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version: 18 # TODO: uncomment install # - name: Install dependencies # run: npm install From 50524bd6ea3c3875914ac12f865fb1137b01c940 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:22:08 +0200 Subject: [PATCH 011/129] try to make it work --- .github/workflows/outdated-dependencies.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3b342ca0db..641c7b1df6 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -10,8 +10,6 @@ on: jobs: check: runs-on: ubuntu-latest - outputs: - output: ${{ steps.run_outdated.outputs.result }} steps: - name: Git checkout uses: actions/checkout@v2 @@ -24,8 +22,9 @@ jobs: # run: npm install - name: Check outdated dependencies id: run_outdated - run: echo "result=$(npm outdated)" >> "$GITHUB_OUTPUT" + run: echo heyy >> "$GITHUB_OUTPUT" - name: Report Status + # run: echo ${{ steps.run_outdated.outputs.result }} run: echo $GITHUB_OUTPUT # - name: Report Status # if: always() From df139b1fa1919a5db8b485482008f63e98e32692 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:23:42 +0200 Subject: [PATCH 012/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 641c7b1df6..571f66829b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: jobs: - check: + check_outdated_dependencies: runs-on: ubuntu-latest steps: - name: Git checkout @@ -22,10 +22,10 @@ jobs: # run: npm install - name: Check outdated dependencies id: run_outdated - run: echo heyy >> "$GITHUB_OUTPUT" + run: OUTPUT=$(echo heyy) - name: Report Status # run: echo ${{ steps.run_outdated.outputs.result }} - run: echo $GITHUB_OUTPUT + run: echo $OUTPUT # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From 93e385f50a70c12192212cc71ac96642ac8b06c2 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:25:42 +0200 Subject: [PATCH 013/129] try again --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 571f66829b..b3bd353c1a 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,7 +22,7 @@ jobs: # run: npm install - name: Check outdated dependencies id: run_outdated - run: OUTPUT=$(echo heyy) + run: export OUTPUT=$(echo heyy) - name: Report Status # run: echo ${{ steps.run_outdated.outputs.result }} run: echo $OUTPUT From 78050e062a00a242451fcbc09bc4c8ace3c3794f Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:31:06 +0200 Subject: [PATCH 014/129] try again 2 --- .github/workflows/outdated-dependencies.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index b3bd353c1a..51e220ec6f 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -10,6 +10,8 @@ on: jobs: check_outdated_dependencies: runs-on: ubuntu-latest + outputs: + outdated_output: ${{ steps.outdated.outputs.outdated_dependencies }} steps: - name: Git checkout uses: actions/checkout@v2 @@ -21,11 +23,12 @@ jobs: # - name: Install dependencies # run: npm install - name: Check outdated dependencies - id: run_outdated - run: export OUTPUT=$(echo heyy) + id: outdated + run: echo "outdated_dependencies=hey" >> "$GITHUB_OUTPUT" - name: Report Status - # run: echo ${{ steps.run_outdated.outputs.result }} - run: echo $OUTPUT + run: echo $OUTDATED_DEPENDENCIES + env: + OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.outdated_dependencies }} # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From b6542454c384fbb6ceaf39593ce9999414da629b Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:31:51 +0200 Subject: [PATCH 015/129] try again 3 --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 51e220ec6f..3485f41901 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: id: outdated run: echo "outdated_dependencies=hey" >> "$GITHUB_OUTPUT" - name: Report Status - run: echo $OUTDATED_DEPENDENCIES + run: echo $GITHUB_OUTPUT env: OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.outdated_dependencies }} # - name: Report Status From e275a95e6aed9cdd6a90cbbe4c5c53a7f3eded10 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:33:22 +0200 Subject: [PATCH 016/129] try again 4 --- .github/workflows/outdated-dependencies.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3485f41901..684397a960 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -10,8 +10,6 @@ on: jobs: check_outdated_dependencies: runs-on: ubuntu-latest - outputs: - outdated_output: ${{ steps.outdated.outputs.outdated_dependencies }} steps: - name: Git checkout uses: actions/checkout@v2 @@ -26,7 +24,7 @@ jobs: id: outdated run: echo "outdated_dependencies=hey" >> "$GITHUB_OUTPUT" - name: Report Status - run: echo $GITHUB_OUTPUT + run: echo $OUTDATED_DEPENDENCIES env: OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.outdated_dependencies }} # - name: Report Status From 0433db2d9a9f6a3181e687f5c4261b89469b37c0 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:35:20 +0200 Subject: [PATCH 017/129] try again 5 --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 684397a960..df98731684 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,7 +22,7 @@ jobs: # run: npm install - name: Check outdated dependencies id: outdated - run: echo "outdated_dependencies=hey" >> "$GITHUB_OUTPUT" + run: echo "outdated_dependencies=$(echo yo)" >> "$GITHUB_OUTPUT" - name: Report Status run: echo $OUTDATED_DEPENDENCIES env: From 6880f285d07e3e1267e8b1ced3c730e94de62932 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:36:31 +0200 Subject: [PATCH 018/129] try again 6 --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index df98731684..2eabe7d0c8 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,11 +22,11 @@ jobs: # run: npm install - name: Check outdated dependencies id: outdated - run: echo "outdated_dependencies=$(echo yo)" >> "$GITHUB_OUTPUT" + run: echo "$(echo yo)" >> "$GITHUB_OUTPUT" - name: Report Status run: echo $OUTDATED_DEPENDENCIES env: - OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.outdated_dependencies }} + OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs }} # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From 98b07e3e74a1b36fb2d792a4c7b4a994328dab1b Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:37:59 +0200 Subject: [PATCH 019/129] try npm outdated --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 2eabe7d0c8..12c529b0a2 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,11 +22,11 @@ jobs: # run: npm install - name: Check outdated dependencies id: outdated - run: echo "$(echo yo)" >> "$GITHUB_OUTPUT" + run: echo "outdated_dependencies=$(npm outdated)" >> "$GITHUB_OUTPUT" - name: Report Status run: echo $OUTDATED_DEPENDENCIES env: - OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs }} + OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.outdated_dependencies }} # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From d66cbba0eccecf09e6bfa65b52b10b33aea9c759 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:46:18 +0200 Subject: [PATCH 020/129] try 1 --- .github/workflows/outdated-dependencies.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 12c529b0a2..bcb17323af 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,7 +22,12 @@ jobs: # run: npm install - name: Check outdated dependencies id: outdated - run: echo "outdated_dependencies=$(npm outdated)" >> "$GITHUB_OUTPUT" + run: | + { + echo 'outdated_dependencies<> "$GITHUB_ENV" - name: Report Status run: echo $OUTDATED_DEPENDENCIES env: From a67c9867a8f21f74f38eb979c35fa52746d814cc Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:50:40 +0200 Subject: [PATCH 021/129] try 2 --- .github/workflows/outdated-dependencies.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index bcb17323af..ea14d91db4 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -24,14 +24,15 @@ jobs: id: outdated run: | { - echo 'outdated_dependencies<> "$GITHUB_ENV" - name: Report Status run: echo $OUTDATED_DEPENDENCIES env: - OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.outdated_dependencies }} + OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.OUTDATED_DEPENDENCIES }} # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From c136d9ffb8522594aa38bd95cf025f3499008027 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:55:22 +0200 Subject: [PATCH 022/129] try 3 --- .github/workflows/outdated-dependencies.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index ea14d91db4..b69bf0c124 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -24,10 +24,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> $GITHUB_OUTPUT + npm outdated >> $GITHUB_OUTPUT + echo 'EOF' >> $GITHUB_OUTPUT } >> "$GITHUB_ENV" - name: Report Status run: echo $OUTDATED_DEPENDENCIES From 7c13942af66b66ba828b38ebdd5d7f79bb58c89f Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 12:59:19 +0200 Subject: [PATCH 023/129] try 4 --- .github/workflows/outdated-dependencies.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index b69bf0c124..f1ef780d56 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,10 +23,11 @@ jobs: - name: Check outdated dependencies id: outdated run: | + npm outdated > ./outdated { - echo 'OUTDATED_DEPENDENCIES<> $GITHUB_OUTPUT - npm outdated >> $GITHUB_OUTPUT - echo 'EOF' >> $GITHUB_OUTPUT + echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status run: echo $OUTDATED_DEPENDENCIES From f513e182bf8d6a5eb187a716ec26824a3c9da308 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 13:04:57 +0200 Subject: [PATCH 024/129] try 5 --- .github/workflows/outdated-dependencies.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index f1ef780d56..eb283712c8 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,10 +23,9 @@ jobs: - name: Check outdated dependencies id: outdated run: | - npm outdated > ./outdated { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From 09fb8d8fca59218e34d6026723425b158764889b Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 13:05:58 +0200 Subject: [PATCH 025/129] try 6 --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index eb283712c8..f55369cec1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From b42f04f1c76c3c726b657d1322a4a3addca137f2 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 13:08:30 +0200 Subject: [PATCH 026/129] try 7 --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index f55369cec1..e54c17941a 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From 4b8c46e821ee85f709d7bde1ff1fb2e4395ddb23 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:33:16 +0200 Subject: [PATCH 027/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index e54c17941a..49ea249852 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From c18a5492e268e859dab44664489ae7d2a44f5e74 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:35:23 +0200 Subject: [PATCH 028/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 49ea249852..228d6133a2 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,9 +29,9 @@ jobs: echo EOF } >> "$GITHUB_ENV" - name: Report Status - run: echo $OUTDATED_DEPENDENCIES - env: - OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.OUTDATED_DEPENDENCIES }} + run: echo env.OUTDATED_DEPENDENCIES + # env: + # OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.OUTDATED_DEPENDENCIES }} # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From 76a0d148f43df20d2c964c1836fa417565da4f57 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:36:53 +0200 Subject: [PATCH 029/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 228d6133a2..ff704688ec 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From 56b65c735f593204ef86c80013b024629cea3762 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:37:39 +0200 Subject: [PATCH 030/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index ff704688ec..9bd6c32495 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From 3c4efe9d20470f7315b12f640b1a89843b024a8e Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:39:24 +0200 Subject: [PATCH 031/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 9bd6c32495..1d7fd8032b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status From e9d354d703dbd130d7f3fd3d930d831e95f40e01 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:41:19 +0200 Subject: [PATCH 032/129] try --- .github/workflows/outdated-dependencies.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 1d7fd8032b..9c64c1b239 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,8 +25,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status run: echo env.OUTDATED_DEPENDENCIES From 20adf08aa6bf72d7375fe6cbdf5cae8653b94c3b Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 14:42:48 +0200 Subject: [PATCH 033/129] try --- .github/workflows/outdated-dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 9c64c1b239..23f804cc97 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -24,8 +24,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status run: echo env.OUTDATED_DEPENDENCIES From 3a0a842dd98d48e58a35b8f6a0109f9f33eadf6a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 15:07:00 +0200 Subject: [PATCH 034/129] try --- .github/workflows/outdated-dependencies.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 23f804cc97..16be2766ba 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -1,5 +1,7 @@ name: Check outdated dependencies on: + push: + branches: ["pro-4734-check-outdated-deps"] # TODO: uncomment schedule # schedule: # # Runs Mon-Fri at 0:00 UTC ( 00:00 EST ) @@ -24,9 +26,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - name: Report Status run: echo env.OUTDATED_DEPENDENCIES From b5167e98e37d69dfa0e408fb37e536ad63630e00 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 15:47:09 +0200 Subject: [PATCH 035/129] try --- .github/workflows/outdated-dependencies.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 16be2766ba..977df462a1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -31,15 +31,13 @@ jobs: echo delimiter } >> "$GITHUB_ENV" - name: Report Status - run: echo env.OUTDATED_DEPENDENCIES - # env: - # OUTDATED_DEPENDENCIES: ${{ steps.outdated.outputs.OUTDATED_DEPENDENCIES }} + run: echo $OUTDATED_DEPENDENCIES # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 # with: # status: ${{ job.status }} - # footer: "<{run_url}|View Run> | $GITHUB_OUTPUT" + # footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" # notify_when: "failure" # notification_title: "outdated dependencies" # env: From d9e8fc549fff539543b1b22141c82990c31c30a5 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 15:52:06 +0200 Subject: [PATCH 036/129] try --- .github/workflows/outdated-dependencies.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 977df462a1..00b1bc5e49 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -32,13 +32,13 @@ jobs: } >> "$GITHUB_ENV" - name: Report Status run: echo $OUTDATED_DEPENDENCIES - # - name: Report Status - # if: always() - # uses: ravsamhq/notify-slack-action@v2 - # with: - # status: ${{ job.status }} - # footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" - # notify_when: "failure" - # notification_title: "outdated dependencies" - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + - name: Report Status + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" + notify_when: "failure" + notification_title: "outdated dependencies" + env: + SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 06458dccf5ea2c44e6f2a516f8bd48a585755fad Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 15:59:15 +0200 Subject: [PATCH 037/129] try --- .github/workflows/outdated-dependencies.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 00b1bc5e49..fe4a151767 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -30,14 +30,16 @@ jobs: echo $(npm outdated) echo delimiter } >> "$GITHUB_ENV" - - name: Report Status + # TODO: remove debug + - name: DEBUG run: echo $OUTDATED_DEPENDENCIES - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" + message: $OUTDATED_DEPENDENCIES + footer: "<{run_url}|View Run>" notify_when: "failure" notification_title: "outdated dependencies" env: From ae4500d5c68706ed1024ff91e6091aa9e28769c2 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:00:26 +0200 Subject: [PATCH 038/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index fe4a151767..69d5f34f3b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,7 +29,7 @@ jobs: echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" + } # TODO: remove debug - name: DEBUG run: echo $OUTDATED_DEPENDENCIES From 9293daaf609abe5c41c247cdb5954c56dadcb4f5 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:02:53 +0200 Subject: [PATCH 039/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 69d5f34f3b..fe4a151767 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,7 +29,7 @@ jobs: echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" # TODO: remove debug - name: DEBUG run: echo $OUTDATED_DEPENDENCIES From 1864356f1aff23c1ea51cd552cb632998fbef775 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:12:55 +0200 Subject: [PATCH 040/129] try --- .github/workflows/outdated-dependencies.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index fe4a151767..47b40f290e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -38,8 +38,7 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - message: $OUTDATED_DEPENDENCIES - footer: "<{run_url}|View Run>" + footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" notify_when: "failure" notification_title: "outdated dependencies" env: From 0bc207891c3dda0ce512bac578f71f284365ad45 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:16:19 +0200 Subject: [PATCH 041/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 47b40f290e..bc5489d47c 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -39,7 +39,7 @@ jobs: with: status: ${{ job.status }} footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" - notify_when: "failure" + notify_when: "success" notification_title: "outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 7901e19adafa33253b617097d18b9dcc688ad437 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:21:05 +0200 Subject: [PATCH 042/129] try --- .github/workflows/outdated-dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index bc5489d47c..ff3276a236 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -30,6 +30,7 @@ jobs: echo $(npm outdated) echo delimiter } >> "$GITHUB_ENV" + npm outdated # TODO: remove debug - name: DEBUG run: echo $OUTDATED_DEPENDENCIES @@ -39,7 +40,7 @@ jobs: with: status: ${{ job.status }} footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" - notify_when: "success" + notify_when: "failure" notification_title: "outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 52c58d61f9b2342c43ab22ff1c26edbfdbd440a9 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:22:06 +0200 Subject: [PATCH 043/129] try --- .github/workflows/outdated-dependencies.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index ff3276a236..432480b795 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -30,10 +30,7 @@ jobs: echo $(npm outdated) echo delimiter } >> "$GITHUB_ENV" - npm outdated # TODO: remove debug - - name: DEBUG - run: echo $OUTDATED_DEPENDENCIES - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From 9909ece7b4c14d492d499315ab7def968e699a3c Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:24:28 +0200 Subject: [PATCH 044/129] try --- .github/workflows/outdated-dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 432480b795..6c417081cd 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -30,6 +30,7 @@ jobs: echo $(npm outdated) echo delimiter } >> "$GITHUB_ENV" + npm outdated # TODO: remove debug - name: Report Status if: always() From 2193ff62c7caf8e2602081a83786f2a481160e27 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:26:57 +0200 Subject: [PATCH 045/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 6c417081cd..f3d32d1e8a 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,19 +25,19 @@ jobs: - name: Check outdated dependencies id: outdated run: | + OUTDATED=$(npm outdated) { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - npm outdated # TODO: remove debug - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" + footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES | $OUTDATED" notify_when: "failure" notification_title: "outdated dependencies" env: From 6feb4fa7e68c31187b3d68c36cd338e6006677b3 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:28:03 +0200 Subject: [PATCH 046/129] try --- .github/workflows/outdated-dependencies.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index f3d32d1e8a..1415190675 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,18 +26,13 @@ jobs: id: outdated run: | OUTDATED=$(npm outdated) - { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" # TODO: remove debug - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES | $OUTDATED" + footer: "<{run_url}|View Run> | $OUTDATED" notify_when: "failure" notification_title: "outdated dependencies" env: From 47610ceb33d8a4581e4b4273566dcba63803527a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:29:01 +0200 Subject: [PATCH 047/129] try --- .github/workflows/outdated-dependencies.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 1415190675..1ae14ba077 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,14 +25,19 @@ jobs: - name: Check outdated dependencies id: outdated run: | - OUTDATED=$(npm outdated) + npm outdated + { + echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" # TODO: remove debug - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | $OUTDATED" + footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" notify_when: "failure" notification_title: "outdated dependencies" env: From 8d316267a32ae120c4dd2a07666413fcf75fd0b0 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:29:57 +0200 Subject: [PATCH 048/129] try --- .github/workflows/outdated-dependencies.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 1ae14ba077..c9d0c47326 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,19 +25,18 @@ jobs: - name: Check outdated dependencies id: outdated run: | - npm outdated { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - # TODO: remove debug + npm outdated - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | $OUTDATED_DEPENDENCIES" + footer: "<{run_url}|View Run> | ${{ env.OUTDATED_DEPENDENCIES }}" notify_when: "failure" notification_title: "outdated dependencies" env: From cba3a2edff193b7498fbb44c48f81e9e1123744e Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:31:36 +0200 Subject: [PATCH 049/129] try --- .github/workflows/outdated-dependencies.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index c9d0c47326..049673a150 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,9 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - # TODO: uncomment install - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - name: Check outdated dependencies id: outdated run: | From a6e570102031c207fea92a8a71140cc50ca85d3a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:38:45 +0200 Subject: [PATCH 050/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 049673a150..cc76a410ab 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - footer: "<{run_url}|View Run> | ${{ env.OUTDATED_DEPENDENCIES }}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" notify_when: "failure" notification_title: "outdated dependencies" env: From b9c5fb447dc91027e4d34122fb6fc34b3fbf9bf4 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:39:36 +0200 Subject: [PATCH 051/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index cc76a410ab..c257d782f1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install - name: Check outdated dependencies id: outdated run: | From 49b86a641b28dff82ae70ae694ce8b6318dcddd4 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:41:49 +0200 Subject: [PATCH 052/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index c257d782f1..7ed06b8bcb 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ${{ env.OUTDATED_DEPENDENCIES }}" notify_when: "failure" notification_title: "outdated dependencies" env: From 8f94c119aa4a936e9811abc4c92c32ee7291eea0 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:42:50 +0200 Subject: [PATCH 053/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 7ed06b8bcb..c54a652598 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ${{ env.OUTDATED_DEPENDENCIES }}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> `${{ env.OUTDATED_DEPENDENCIES }}`" notify_when: "failure" notification_title: "outdated dependencies" env: From f439273d4bc10185f912aad5c1715c3cdd2adf7c Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:43:06 +0200 Subject: [PATCH 054/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index c54a652598..36498ae3f7 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> `${{ env.OUTDATED_DEPENDENCIES }}`" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>\n\n```${{ env.OUTDATED_DEPENDENCIES }}```" notify_when: "failure" notification_title: "outdated dependencies" env: From 46039121f28a6d2d9d6ed390c09f686053c4ddfe Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:44:20 +0200 Subject: [PATCH 055/129] try --- .github/workflows/outdated-dependencies.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 36498ae3f7..b90cd4adc0 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,8 +35,9 @@ jobs: uses: ravsamhq/notify-slack-action@v2 with: status: ${{ job.status }} - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>\n\n```${{ env.OUTDATED_DEPENDENCIES }}```" + message_format: | + "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> + ```${{ env.OUTDATED_DEPENDENCIES }}```" notify_when: "failure" - notification_title: "outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 0c5e4d1b271bb6241a0f7af17e1efd744b5dbe05 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:45:05 +0200 Subject: [PATCH 056/129] try --- .github/workflows/outdated-dependencies.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index b90cd4adc0..9d744a8360 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated @@ -36,8 +36,10 @@ jobs: with: status: ${{ job.status }} message_format: | - "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - ```${{ env.OUTDATED_DEPENDENCIES }}```" + {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> + ```json + ${{ env.OUTDATED_DEPENDENCIES }} + ``` notify_when: "failure" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 09f8c3cc8e6baaf195d747898e788f5508ed244a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:46:41 +0200 Subject: [PATCH 057/129] try --- .github/workflows/outdated-dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 9d744a8360..6098c39255 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -37,9 +37,10 @@ jobs: status: ${{ job.status }} message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - ```json + ``` ${{ env.OUTDATED_DEPENDENCIES }} ``` notify_when: "failure" + notification_title: "Outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From a663e32366abefb3c30148228bfcbe6991ca8692 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:47:53 +0200 Subject: [PATCH 058/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 6098c39255..3c336cce8e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated From 8c39c9a89532fa3a925b195e8946e46ef581743f Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:48:02 +0200 Subject: [PATCH 059/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3c336cce8e..46fe045f94 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -38,7 +38,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.OUTDATED_DEPENDENCIES }} + ${{ npm outdated }} ``` notify_when: "failure" notification_title: "Outdated dependencies" From 9ad2582bde73eba090252a59bb498c19dd4c6457 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:51:09 +0200 Subject: [PATCH 060/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 46fe045f94..5113198eee 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,9 +25,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated - name: Report Status @@ -38,7 +38,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ npm outdated }} + ${{ env.OUTDATED_DEPENDENCIES }} ``` notify_when: "failure" notification_title: "Outdated dependencies" From 75686a3473c52ce1a99355f91876ba3b09406da4 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:52:02 +0200 Subject: [PATCH 061/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 5113198eee..014cf47b07 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,9 +25,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated - name: Report Status From 843645d981a48d05af7348785491743759ed14bb Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 16:53:34 +0200 Subject: [PATCH 062/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 014cf47b07..8a65772ac1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,9 +25,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated - name: Report Status From 6e6eb26b35d481666fdfbb6a3758104dcea3ad56 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 17:02:07 +0200 Subject: [PATCH 063/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 8a65772ac1..d0fc47183b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,9 +25,9 @@ jobs: id: outdated run: | { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated - name: Report Status @@ -38,7 +38,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.OUTDATED_DEPENDENCIES }} + ${env.OUTDATED_DEPENDENCIES//'apostrophe'/'apostrophe\n'} ``` notify_when: "failure" notification_title: "Outdated dependencies" From 0b833b6f9b1258b20163c528efacdc0984daa5d4 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 17:05:11 +0200 Subject: [PATCH 064/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index d0fc47183b..5c51525e8e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -38,7 +38,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${env.OUTDATED_DEPENDENCIES//'apostrophe'/'apostrophe\n'} + ${{ env.OUTDATED_DEPENDENCIES//MISSING/HELLO }} ``` notify_when: "failure" notification_title: "Outdated dependencies" From 4e2be95629479ec7ce7ee2ed7f3415a2f4cc88d4 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 17:07:42 +0200 Subject: [PATCH 065/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 5c51525e8e..c2737734e3 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -38,7 +38,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.OUTDATED_DEPENDENCIES//MISSING/HELLO }} + ${{ env.OUTDATED_DEPENDENCIES//'MISSING'/'HELLO' }} ``` notify_when: "failure" notification_title: "Outdated dependencies" From aea25bdbb92a794381e42d13d6eb2ff0c1550e39 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 17:08:08 +0200 Subject: [PATCH 066/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index c2737734e3..95a0537091 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -38,7 +38,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.OUTDATED_DEPENDENCIES//'MISSING'/'HELLO' }} + ${env.OUTDATED_DEPENDENCIES//MISSING/HELLO} ``` notify_when: "failure" notification_title: "Outdated dependencies" From b3d7a719199a6aff43318d525e72f6e547c2131d Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 17:10:04 +0200 Subject: [PATCH 067/129] try --- .github/workflows/outdated-dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 95a0537091..5ea66f2556 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -38,9 +38,10 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${env.OUTDATED_DEPENDENCIES//MISSING/HELLO} + ${OUTPUT//MISSING/HELLO} ``` notify_when: "failure" notification_title: "Outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + OUTPUT: ${{ env.OUTDATED_DEPENDENCIES }} From 9a9b71f92da0c81f12407cceea1d882fc2ea73b6 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 26 Sep 2023 17:16:39 +0200 Subject: [PATCH 068/129] try --- .github/workflows/outdated-dependencies.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 5ea66f2556..a4f4716026 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - name: Check outdated dependencies id: outdated run: | @@ -38,10 +38,9 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${OUTPUT//MISSING/HELLO} + ${{ env.OUTDATED_DEPENDENCIES }} ``` notify_when: "failure" notification_title: "Outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} - OUTPUT: ${{ env.OUTDATED_DEPENDENCIES }} From 17490a5dfdc9d752e4f71b197fc89e038ff6d89a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 10:35:09 +0200 Subject: [PATCH 069/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index a4f4716026..efa3c93265 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated From c6c7e645e59fe6b897ad17eef2489539e8ceb5b2 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 10:37:28 +0200 Subject: [PATCH 070/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index efa3c93265..7992807a6f 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated From 61ade70a0eb0db548caa0d9be717c92d0bd996e3 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 10:40:22 +0200 Subject: [PATCH 071/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 7992807a6f..392f29b310 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: run: | { echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" npm outdated From ff9de0ab26ff3427f452c2c881b4c769b9d46055 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 10:48:41 +0200 Subject: [PATCH 072/129] try --- .github/workflows/outdated-dependencies.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 392f29b310..ce0c4d86a1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,17 +19,22 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install + # - name: Check outdated dependencies + # id: outdated + # run: | + # { + # echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" + # npm outdated - name: Check outdated dependencies id: outdated run: | - { - echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - npm outdated + npm outdated > hello + cat hello - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From 9809993ac972c27668b61dbcb21c56ec0b9423e6 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 10:57:57 +0200 Subject: [PATCH 073/129] try --- .github/workflows/outdated-dependencies.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index ce0c4d86a1..0664b649bf 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -21,20 +21,15 @@ jobs: node-version: 18 # - name: Install dependencies # run: npm install - # - name: Check outdated dependencies - # id: outdated - # run: | - # { - # echo 'OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - # npm outdated - name: Check outdated dependencies id: outdated run: | - npm outdated > hello - cat hello + { + echo "OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" + npm outdated - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From f910e0755faaa9761774532cf5165944eee015f0 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:01:18 +0200 Subject: [PATCH 074/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 0664b649bf..6862b9852b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,7 +29,7 @@ jobs: echo $(npm outdated) echo delimiter } >> "$GITHUB_ENV" - npm outdated + echo $OUTDATED_DEPENDENCIES - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From d906805af2c50b7d6a41016cc6f6bae60e0e9047 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:19:28 +0200 Subject: [PATCH 075/129] try --- .github/workflows/outdated-dependencies.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 6862b9852b..e54c572d77 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,13 +23,10 @@ jobs: # run: npm install - name: Check outdated dependencies id: outdated + # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - { - echo "OUTDATED_DEPENDENCIES<> "$GITHUB_ENV" - echo $OUTDATED_DEPENDENCIES + echo 'TOTO="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' >> "$GITHUB_ENV" + echo $TOTO - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 @@ -38,7 +35,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.OUTDATED_DEPENDENCIES }} + ${{ env.TOTO }} ``` notify_when: "failure" notification_title: "Outdated dependencies" From 1689bde4029d36e9748789a248ead4998418eda1 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:20:23 +0200 Subject: [PATCH 076/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index e54c572d77..2d18dcf488 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,8 +25,8 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - echo 'TOTO="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' >> "$GITHUB_ENV" - echo $TOTO + echo 'TOTO="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' >> $GITHUB_ENV + cat $GITHUB_ENV - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From badd6a569471c9b27a61f62e2b91cbdc7aebe156 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:21:44 +0200 Subject: [PATCH 077/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 2d18dcf488..0e675e3071 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -37,7 +37,7 @@ jobs: ``` ${{ env.TOTO }} ``` - notify_when: "failure" + # notify_when: "failure" notification_title: "Outdated dependencies" env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From d8d1d2206e5a776571e048cc8b9012d93d5eb28d Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:23:46 +0200 Subject: [PATCH 078/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 0e675e3071..fdc7d17cd1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.TOTO }} + $( cat $GITHUB_ENV ) ``` # notify_when: "failure" notification_title: "Outdated dependencies" From 822e1bac156776c495846793542e767b802f6f7b Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:24:57 +0200 Subject: [PATCH 079/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index fdc7d17cd1..d5469b924b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - $( cat $GITHUB_ENV ) + ${{ cat $GITHUB_ENV }} ``` # notify_when: "failure" notification_title: "Outdated dependencies" From 3fa7cd12e211a694f4eaaafd0b01ad25d909239a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:25:45 +0200 Subject: [PATCH 080/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index d5469b924b..aaa1f8cb08 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,8 +25,8 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - echo 'TOTO="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' >> $GITHUB_ENV - cat $GITHUB_ENV + echo 'OUTPUT="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' + echo $OUTPUT - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 @@ -35,7 +35,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ cat $GITHUB_ENV }} + ${{ $OUTPUT }} ``` # notify_when: "failure" notification_title: "Outdated dependencies" From 52441311d82fc85ab2321fdd2b4a06d433f0b18f Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:26:09 +0200 Subject: [PATCH 081/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index aaa1f8cb08..2628e29456 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - echo 'OUTPUT="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' + OUTPUT="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe" echo $OUTPUT - name: Report Status if: always() From 2189e45794b9f1cd73446115435a4168b6e6e7c4 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 11:27:16 +0200 Subject: [PATCH 082/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 2628e29456..e7f40c732e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - OUTPUT="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe" + OUTPUT="$(npm outdated)" echo $OUTPUT - name: Report Status if: always() @@ -35,7 +35,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ $OUTPUT }} + ${{ env.OUTPUT }} ``` # notify_when: "failure" notification_title: "Outdated dependencies" From a9bc7e9ebbafbafd1d65772cdc29dcbf7e8c0aa5 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:24:55 +0200 Subject: [PATCH 083/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index e7f40c732e..faa979c13f 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - OUTPUT="$(npm outdated)" + OUTPUT="$(npm outdated)" || echo "do not fail" echo $OUTPUT - name: Report Status if: always() From 483c9e0be43ada700e16e349617402d6cf2b8589 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:26:17 +0200 Subject: [PATCH 084/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index faa979c13f..0e675e3071 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,8 +25,8 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - OUTPUT="$(npm outdated)" || echo "do not fail" - echo $OUTPUT + echo 'TOTO="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' >> $GITHUB_ENV + cat $GITHUB_ENV - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 @@ -35,7 +35,7 @@ jobs: message_format: | {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> ``` - ${{ env.OUTPUT }} + ${{ env.TOTO }} ``` # notify_when: "failure" notification_title: "Outdated dependencies" From 032c049fe380be3420095831010f3055b10b7a97 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:27:31 +0200 Subject: [PATCH 085/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 0e675e3071..aca506c584 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - echo 'TOTO="@babel/eslint-parser 7.21.8 7.22.15 7.22.15 node_modules/@babel/eslint-parser here apostrophe"' >> $GITHUB_ENV + echo 'TOTO="$(npm outdated)"' >> $GITHUB_ENV cat $GITHUB_ENV - name: Report Status if: always() From c913a4359e63393236de67a4ad3e3857ac5e6082 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:30:44 +0200 Subject: [PATCH 086/129] try --- .github/workflows/outdated-dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index aca506c584..afb30f86b1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,8 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - echo 'TOTO="$(npm outdated)"' >> $GITHUB_ENV + TITI=$(npm outdated) + echo "TOTO=$TITI" >> $GITHUB_ENV cat $GITHUB_ENV - name: Report Status if: always() From 480ca1755bc15c179b23b2233732e28c2e662366 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:32:14 +0200 Subject: [PATCH 087/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index afb30f86b1..0a638443fd 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - TITI=$(npm outdated) + TITI=$(npm outdated) || echo "ok" echo "TOTO=$TITI" >> $GITHUB_ENV cat $GITHUB_ENV - name: Report Status From 781f75fe5092afd4c4e0f97eaba42125eeb6d951 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:33:28 +0200 Subject: [PATCH 088/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 0a638443fd..8e05af0401 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | TITI=$(npm outdated) || echo "ok" - echo "TOTO=$TITI" >> $GITHUB_ENV + echo 'TOTO="$TITI"' >> $GITHUB_ENV cat $GITHUB_ENV - name: Report Status if: always() From 45b44273a3cc620d9704a2591d52dc016cde1477 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:35:17 +0200 Subject: [PATCH 089/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 8e05af0401..3125f8a239 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,7 +26,7 @@ jobs: # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | TITI=$(npm outdated) || echo "ok" - echo 'TOTO="$TITI"' >> $GITHUB_ENV + echo "TOTO=\"$TITI\"" >> $GITHUB_ENV cat $GITHUB_ENV - name: Report Status if: always() From 51f1f15244e006ec2c8123d9b35b932709431cc6 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:38:07 +0200 Subject: [PATCH 090/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3125f8a239..37672d6872 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,7 +25,7 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - TITI=$(npm outdated) || echo "ok" + TITI=$(npm outdated) || echo "oaaaaaaak" echo "TOTO=\"$TITI\"" >> $GITHUB_ENV cat $GITHUB_ENV - name: Report Status From 5cdc1bbcaac9af577f53fff3fe2737e30af7f155 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:55:02 +0200 Subject: [PATCH 091/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 37672d6872..2ee4642714 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,9 +25,9 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - TITI=$(npm outdated) || echo "oaaaaaaak" + TITI=$(npm outdated) || echo "ok" + echo $TITI echo "TOTO=\"$TITI\"" >> $GITHUB_ENV - cat $GITHUB_ENV - name: Report Status if: always() uses: ravsamhq/notify-slack-action@v2 From f6eac16fc943f245e128d0b96792fb523c837ae6 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:58:34 +0200 Subject: [PATCH 092/129] try --- .github/workflows/outdated-dependencies.yml | 39 ++++++++++++--------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 2ee4642714..0e28794c84 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -25,20 +25,25 @@ jobs: id: outdated # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' run: | - TITI=$(npm outdated) || echo "ok" - echo $TITI - echo "TOTO=\"$TITI\"" >> $GITHUB_ENV - - name: Report Status - if: always() - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - message_format: | - {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - ``` - ${{ env.TOTO }} - ``` - # notify_when: "failure" - notification_title: "Outdated dependencies" - env: - SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + output="This is line 1. + This is line 2. + This is line 3." + echo "$output" + - name: Yo + run: | + multiline_output="${{ steps.outdated.outputs.result }}" + echo "$multiline_output" + # - name: Report Status + # if: always() + # uses: ravsamhq/notify-slack-action@v2 + # with: + # status: ${{ job.status }} + # message_format: | + # {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> + # ``` + # ${{ env.TOTO }} + # ``` + # # notify_when: "failure" + # notification_title: "Outdated dependencies" + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From daf8c0084a1c01ab55e1f50734cf3a763ad794da Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 12:59:46 +0200 Subject: [PATCH 093/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 0e28794c84..2f12fdba46 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -31,7 +31,7 @@ jobs: echo "$output" - name: Yo run: | - multiline_output="${{ steps.outdated.outputs.result }}" + multiline_output="${{ steps.outdated.outputs.output }}" echo "$multiline_output" # - name: Report Status # if: always() From e4de330907225c97aa1f6919cba53f1f982e2e9f Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:02:28 +0200 Subject: [PATCH 094/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 2f12fdba46..839f4074f1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -32,7 +32,7 @@ jobs: - name: Yo run: | multiline_output="${{ steps.outdated.outputs.output }}" - echo "$multiline_output" + echo "$output" # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From 5b3525563d326d3d5d0df993e43c9a998a0b57ea Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:08:38 +0200 Subject: [PATCH 095/129] try --- .github/workflows/outdated-dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 839f4074f1..c0822a5479 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,6 +29,7 @@ jobs: This is line 2. This is line 3." echo "$output" + # SAOULE - name: Yo run: | multiline_output="${{ steps.outdated.outputs.output }}" From 38da0f5eacde27427e44a0e97bb3ae282475b24d Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:09:45 +0200 Subject: [PATCH 096/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index c0822a5479..4b0b04b2d4 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -33,7 +33,7 @@ jobs: - name: Yo run: | multiline_output="${{ steps.outdated.outputs.output }}" - echo "$output" + echo env.output # - name: Report Status # if: always() # uses: ravsamhq/notify-slack-action@v2 From 41acbfbee32259d5f1bac7abbebc642632f45e21 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:10:47 +0200 Subject: [PATCH 097/129] try --- .github/workflows/outdated-dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 4b0b04b2d4..668bca234f 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -33,6 +33,7 @@ jobs: - name: Yo run: | multiline_output="${{ steps.outdated.outputs.output }}" + echo $multiline_output echo env.output # - name: Report Status # if: always() From bbda38cccab933b1e2b5e6ef0a667e3393526467 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:16:00 +0200 Subject: [PATCH 098/129] try --- .github/workflows/outdated-dependencies.yml | 86 +++++++++++++-------- 1 file changed, 53 insertions(+), 33 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 668bca234f..0ca4ffc48e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -13,39 +13,59 @@ jobs: check_outdated_dependencies: runs-on: ubuntu-latest steps: - - name: Git checkout - uses: actions/checkout@v2 - - name: Use Node.js 18 - uses: actions/setup-node@v1 - with: - node-version: 18 - # - name: Install dependencies - # run: npm install - - name: Check outdated dependencies - id: outdated - # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' + - name: Set Multiline Output + id: multiline_output run: | + # Use the echo command to set a multiline output output="This is line 1. - This is line 2. - This is line 3." - echo "$output" - # SAOULE - - name: Yo + This is line 2. + This is line 3." + + # Use double quotes to preserve the newlines and whitespaces + echo "::set-output name=multiline_output::$output" + + - name: Use Multiline Output run: | - multiline_output="${{ steps.outdated.outputs.output }}" - echo $multiline_output - echo env.output - # - name: Report Status - # if: always() - # uses: ravsamhq/notify-slack-action@v2 - # with: - # status: ${{ job.status }} - # message_format: | - # {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - # ``` - # ${{ env.TOTO }} - # ``` - # # notify_when: "failure" - # notification_title: "Outdated dependencies" - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + # Retrieve the multiline output from the previous step + multiline_output="${{ steps.multiline_output.outputs.multiline_output }}" + + # Use the multiline output in subsequent steps or for other purposes + echo "Multiline Output:" + echo "$multiline_output" + # steps: + # - name: Git checkout + # uses: actions/checkout@v2 + # - name: Use Node.js 18 + # uses: actions/setup-node@v1 + # with: + # node-version: 18 + # # - name: Install dependencies + # # run: npm install + # - name: Check outdated dependencies + # id: outdated + # # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' + # run: | + # output="This is line 1. + # This is line 2. + # This is line 3." + # echo "$output" + # # SAOULE + # - name: Yo + # run: | + # multiline_output="${{ steps.outdated.outputs.output }}" + # echo $multiline_output + # echo env.output + # # - name: Report Status + # # if: always() + # # uses: ravsamhq/notify-slack-action@v2 + # # with: + # # status: ${{ job.status }} + # # message_format: | + # # {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> + # # ``` + # # ${{ env.TOTO }} + # # ``` + # # # notify_when: "failure" + # # notification_title: "Outdated dependencies" + # # env: + # # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 2ecbcd8ebc098cf24e57a1f48a0202d0ebf83dff Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:17:51 +0200 Subject: [PATCH 099/129] try --- .github/workflows/outdated-dependencies.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 0ca4ffc48e..1264a7852e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -14,7 +14,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Set Multiline Output - id: multiline_output run: | # Use the echo command to set a multiline output output="This is line 1. @@ -22,12 +21,12 @@ jobs: This is line 3." # Use double quotes to preserve the newlines and whitespaces - echo "::set-output name=multiline_output::$output" + echo "$output" > output.txt - name: Use Multiline Output run: | - # Retrieve the multiline output from the previous step - multiline_output="${{ steps.multiline_output.outputs.multiline_output }}" + # Read the multiline output from the temporary file + multiline_output=$(cat output.txt) # Use the multiline output in subsequent steps or for other purposes echo "Multiline Output:" From 3fc6b46905a8cd0d802cba67ecc406736db1716a Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:18:59 +0200 Subject: [PATCH 100/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 1264a7852e..5c950fd701 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -21,12 +21,12 @@ jobs: This is line 3." # Use double quotes to preserve the newlines and whitespaces - echo "$output" > output.txt + echo "$output" > output - name: Use Multiline Output run: | # Read the multiline output from the temporary file - multiline_output=$(cat output.txt) + multiline_output=$(cat output) # Use the multiline output in subsequent steps or for other purposes echo "Multiline Output:" From 3207b37b5cfff68c6e2b5c9fd34b4c96d410f11e Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:20:11 +0200 Subject: [PATCH 101/129] try --- .github/workflows/outdated-dependencies.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 5c950fd701..cb78698bfa 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -13,15 +13,16 @@ jobs: check_outdated_dependencies: runs-on: ubuntu-latest steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Use Node.js 18 + uses: actions/setup-node@v1 + with: + node-version: 18 - name: Set Multiline Output run: | - # Use the echo command to set a multiline output - output="This is line 1. - This is line 2. - This is line 3." - # Use double quotes to preserve the newlines and whitespaces - echo "$output" > output + echo "$(npm outdated)" > output - name: Use Multiline Output run: | From 8b9663084e62a2a639c52c45773b0327c762dd3d Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:24:26 +0200 Subject: [PATCH 102/129] try --- .github/workflows/outdated-dependencies.yml | 62 +++++++-------------- 1 file changed, 20 insertions(+), 42 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index cb78698bfa..7a421b8848 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,11 +19,10 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Set Multiline Output - run: | - # Use double quotes to preserve the newlines and whitespaces - echo "$(npm outdated)" > output - + - name: Install dependencies + run: npm install + - name: Check outdated dependencies + run: echo "$(npm outdated)" > output - name: Use Multiline Output run: | # Read the multiline output from the temporary file @@ -32,40 +31,19 @@ jobs: # Use the multiline output in subsequent steps or for other purposes echo "Multiline Output:" echo "$multiline_output" - # steps: - # - name: Git checkout - # uses: actions/checkout@v2 - # - name: Use Node.js 18 - # uses: actions/setup-node@v1 - # with: - # node-version: 18 - # # - name: Install dependencies - # # run: npm install - # - name: Check outdated dependencies - # id: outdated - # # run: npm outdated | awk '{ print $0 >> "$GITHUB_ENV" }' - # run: | - # output="This is line 1. - # This is line 2. - # This is line 3." - # echo "$output" - # # SAOULE - # - name: Yo - # run: | - # multiline_output="${{ steps.outdated.outputs.output }}" - # echo $multiline_output - # echo env.output - # # - name: Report Status - # # if: always() - # # uses: ravsamhq/notify-slack-action@v2 - # # with: - # # status: ${{ job.status }} - # # message_format: | - # # {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - # # ``` - # # ${{ env.TOTO }} - # # ``` - # # # notify_when: "failure" - # # notification_title: "Outdated dependencies" - # # env: - # # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + - name: Report Status + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + message_format: | + {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> + ``` + ${{ env.multiline_output }} + ${{ env.OUTDATED_DEPENDENCIES }} + ``` + # notify_when: "failure" + notification_title: "Outdated dependencies" + env: + SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + OUTDATED_DEPENDENCIES: ${{ env.multiline_output }} From 845821049313475b35f59eb444ac06712759d7dc Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:32:25 +0200 Subject: [PATCH 103/129] try --- .github/workflows/outdated-dependencies.yml | 34 +++++++++++++-------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 7a421b8848..3675ba01c8 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -33,17 +33,27 @@ jobs: echo "$multiline_output" - name: Report Status if: always() - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - message_format: | - {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - ``` - ${{ env.multiline_output }} - ${{ env.OUTDATED_DEPENDENCIES }} - ``` - # notify_when: "failure" - notification_title: "Outdated dependencies" + run: | + multiline_output=$(cat output) + payload="{\"text\": \"$multiline_output\"}" + + # Send the payload to Slack using curl + curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} - OUTDATED_DEPENDENCIES: ${{ env.multiline_output }} + # - name: Report Status + # if: always() + # uses: ravsamhq/notify-slack-action@v2 + # with: + # status: ${{ job.status }} + # message_format: | + # {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> + # ``` + # ${{ env.multiline_output }} + # ${{ env.OUTDATED_DEPENDENCIES }} + # ``` + # # notify_when: "failure" + # notification_title: "Outdated dependencies" + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + # OUTDATED_DEPENDENCIES: ${{ env.multiline_output }} From c79320f80879303ed1e77778049e0ad01439302c Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:34:28 +0200 Subject: [PATCH 104/129] try --- .github/workflows/outdated-dependencies.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3675ba01c8..13bf4121d2 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,9 +35,7 @@ jobs: if: always() run: | multiline_output=$(cat output) - payload="{\"text\": \"$multiline_output\"}" - - # Send the payload to Slack using curl + payload="{\"text\": \"```$multiline_output```\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 6d887cd7176bc974bc09bb9a22e30bb853745f4d Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:36:07 +0200 Subject: [PATCH 105/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 13bf4121d2..b801379dc7 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -35,7 +35,7 @@ jobs: if: always() run: | multiline_output=$(cat output) - payload="{\"text\": \"```$multiline_output```\"}" + payload="{\"text\": \"\`\`\`$multiline_output\`\`\`\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 510ae80194220e92b72e6bcaf9bc574d93cd3868 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:44:06 +0200 Subject: [PATCH 106/129] try --- .github/workflows/outdated-dependencies.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index b801379dc7..a61c67f6f6 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -22,20 +22,18 @@ jobs: - name: Install dependencies run: npm install - name: Check outdated dependencies - run: echo "$(npm outdated)" > output - - name: Use Multiline Output run: | - # Read the multiline output from the temporary file - multiline_output=$(cat output) - - # Use the multiline output in subsequent steps or for other purposes - echo "Multiline Output:" - echo "$multiline_output" + echo "$(npm outdated)" > output + npm outdated - name: Report Status - if: always() + if: failure() run: | - multiline_output=$(cat output) - payload="{\"text\": \"\`\`\`$multiline_output\`\`\`\"}" + outdated_dependencies=$(cat output) + text="The project has outdated dependencies: + + \`\`\`$outdated_dependencies\`\`\` + " + payload="{\"text\": \"$text\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 8b9c2e533cfd20e749a7b6c9b8eb3b61dce5d6e8 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:52:33 +0200 Subject: [PATCH 107/129] try --- .github/workflows/outdated-dependencies.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index a61c67f6f6..4688f4628f 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,8 +23,10 @@ jobs: run: npm install - name: Check outdated dependencies run: | - echo "$(npm outdated)" > output - npm outdated + outdated_dependencies=$(npm outdated) + exit_status=$? + echo $outdated_dependencies > output + exit $exit_status - name: Report Status if: failure() run: | From cd56fca2b6ff79cff757119fb52cfc6866971c30 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:56:45 +0200 Subject: [PATCH 108/129] try --- .github/workflows/outdated-dependencies.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 4688f4628f..2c1d8ff536 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -24,13 +24,10 @@ jobs: - name: Check outdated dependencies run: | outdated_dependencies=$(npm outdated) - exit_status=$? - echo $outdated_dependencies > output - exit $exit_status - name: Report Status if: failure() run: | - outdated_dependencies=$(cat output) + # outdated_dependencies=$(cat output) text="The project has outdated dependencies: \`\`\`$outdated_dependencies\`\`\` From 420af836f5a1823be1c6d59c3796b0703d57da91 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:56:53 +0200 Subject: [PATCH 109/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 2c1d8ff536..1b48b2ff82 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install - name: Check outdated dependencies run: | outdated_dependencies=$(npm outdated) From f7f7af1c41d695f200bfe6bd139c2d353f174ff5 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:59:48 +0200 Subject: [PATCH 110/129] try --- .github/workflows/outdated-dependencies.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 1b48b2ff82..29c3f7bb9e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,15 +19,18 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - name: Check outdated dependencies run: | - outdated_dependencies=$(npm outdated) + outdated_dependencies=$(npm outdated) || echo "OKKKKKKKKKKKKKKKKKKKKK" + exit_status=$? + echo $outdated_dependencies > output + exit $exit_status - name: Report Status if: failure() run: | - # outdated_dependencies=$(cat output) + outdated_dependencies=$(cat output) text="The project has outdated dependencies: \`\`\`$outdated_dependencies\`\`\` From 4ebcd6198c244b184a0894e25625a3af28dc2374 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 13:59:57 +0200 Subject: [PATCH 111/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 29c3f7bb9e..3ced6e0f43 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install - name: Check outdated dependencies run: | outdated_dependencies=$(npm outdated) || echo "OKKKKKKKKKKKKKKKKKKKKK" From 134e154dd60c0d5cb6a61eb148f32a9a736db73b Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:12:49 +0200 Subject: [PATCH 112/129] try --- .github/workflows/outdated-dependencies.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3ced6e0f43..dee562e8c5 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -23,15 +23,13 @@ jobs: # run: npm install - name: Check outdated dependencies run: | - outdated_dependencies=$(npm outdated) || echo "OKKKKKKKKKKKKKKKKKKKKK" - exit_status=$? - echo $outdated_dependencies > output - exit $exit_status + echo "$(npm outdated)" > output + npm outdated - name: Report Status if: failure() run: | outdated_dependencies=$(cat output) - text="The project has outdated dependencies: + text="⚠️ The <${{ github.repositoryUrl }}|${{ github.repository }}> project has outdated dependencies: \`\`\`$outdated_dependencies\`\`\` " From acf728783bf97cfe9c5557ebfc3d3da80679bb31 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:15:34 +0200 Subject: [PATCH 113/129] try --- .github/workflows/outdated-dependencies.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index dee562e8c5..3a0a163559 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -30,10 +30,10 @@ jobs: run: | outdated_dependencies=$(cat output) text="⚠️ The <${{ github.repositoryUrl }}|${{ github.repository }}> project has outdated dependencies: - - \`\`\`$outdated_dependencies\`\`\` - " - payload="{\"text\": \"$text\"}" + \`\`\` + $outdated_dependencies + \`\`\`" + payload="{\"text\": $text}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From 126da1c1e437831ddff3419fd7ce0af435b43ba3 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:16:12 +0200 Subject: [PATCH 114/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 3a0a163559..b6d68903bd 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - name: Check outdated dependencies run: | echo "$(npm outdated)" > output From 979fba0a1a3d3cd52b6ac0e34851eff8f4fea89c Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:18:18 +0200 Subject: [PATCH 115/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index b6d68903bd..544d4807ec 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install - name: Check outdated dependencies run: | echo "$(npm outdated)" > output @@ -29,7 +29,7 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) - text="⚠️ The <${{ github.repositoryUrl }}|${{ github.repository }}> project has outdated dependencies: + text="⚠️ The <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}> project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\`" From e75b7ffc73087337537cd4c7fb8024d3cf8c185d Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:50:40 +0200 Subject: [PATCH 116/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 544d4807ec..06e22deab7 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - name: Check outdated dependencies run: | echo "$(npm outdated)" > output From 0b1c0566d4943200fe4c3c9267ff7211de533267 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:52:57 +0200 Subject: [PATCH 117/129] try --- .github/workflows/outdated-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 06e22deab7..f2c1d946e0 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install - name: Check outdated dependencies run: | echo "$(npm outdated)" > output @@ -29,7 +29,7 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) - text="⚠️ The <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}> project has outdated dependencies: + text="⚠️ The project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\`" From d61ae0bbd20eef11cac7e525419313268158d9fe Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:53:51 +0200 Subject: [PATCH 118/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index f2c1d946e0..8ba2fe96b1 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,7 +29,7 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) - text="⚠️ The project has outdated dependencies: + text="The project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\`" From 307eb9cdf599a7ad71c729c0661ebe90d74dffc1 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:55:11 +0200 Subject: [PATCH 119/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 8ba2fe96b1..896963105d 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -33,7 +33,7 @@ jobs: \`\`\` $outdated_dependencies \`\`\`" - payload="{\"text\": $text}" + payload="{\"text\": \"$text\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} From c8521da4d7bd2293cb7f3bc1c28acef055fccfc6 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:56:28 +0200 Subject: [PATCH 120/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 896963105d..d9d0a2e531 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,7 +29,7 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) - text="The project has outdated dependencies: + text="⚠️ The <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}> project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\`" From 882cab92093f13cc6a7002442a8c21eb55135bfb Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 14:57:45 +0200 Subject: [PATCH 121/129] try --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index d9d0a2e531..f07d3f6c68 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -19,8 +19,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 18 - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - name: Check outdated dependencies run: | echo "$(npm outdated)" > output From e3e4d27f6c96b3acc843e54b062ef4973aa66c16 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 15:42:19 +0200 Subject: [PATCH 122/129] try --- .github/workflows/outdated-dependencies.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index f07d3f6c68..1efd39360b 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,10 +29,14 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) - text="⚠️ The <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}> project has outdated dependencies: + repo="$github.repository" + repo_url="$github.server_url/$repo" + run_url="${repo_url}/actions/runs/${job.run_id}" + text="⚠️ The <$repo_url|$repo> project has outdated dependencies: \`\`\` $outdated_dependencies - \`\`\`" + \`\`\` + <{run_url}|View Run> | " payload="{\"text\": \"$text\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: From e590155b49aea53d6ae46c79c464449072a925e3 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 16:22:56 +0200 Subject: [PATCH 123/129] try --- .github/workflows/outdated-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 1efd39360b..333b70399e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -31,7 +31,7 @@ jobs: outdated_dependencies=$(cat output) repo="$github.repository" repo_url="$github.server_url/$repo" - run_url="${repo_url}/actions/runs/${job.run_id}" + run_url="$repo_url/actions/runs/${{ job.run_id }}" text="⚠️ The <$repo_url|$repo> project has outdated dependencies: \`\`\` $outdated_dependencies From 70f10083e4b9607e4dc4427efc4bcf12f3e99671 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 16:26:21 +0200 Subject: [PATCH 124/129] try --- .github/workflows/outdated-dependencies.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 333b70399e..aed576280d 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -29,14 +29,14 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) - repo="$github.repository" - repo_url="$github.server_url/$repo" - run_url="$repo_url/actions/runs/${{ job.run_id }}" - text="⚠️ The <$repo_url|$repo> project has outdated dependencies: + repo="${{ github.repository }}" + repo_url="${{ github.server_url }}/${{ repo }}" + run_url="${{ repo_url }}/actions/runs/${{ job.run_id }}" + text="⚠️ The <${{ repo_url }}|${{ repo }}> project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\` - <{run_url}|View Run> | " + <${{ run_url }}|View Run>" payload="{\"text\": \"$text\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: From c0bd65e51508c849543f65e60852f6cd1f53d556 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 16:28:40 +0200 Subject: [PATCH 125/129] try --- .github/workflows/outdated-dependencies.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index aed576280d..99590cfa9e 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -30,13 +30,13 @@ jobs: run: | outdated_dependencies=$(cat output) repo="${{ github.repository }}" - repo_url="${{ github.server_url }}/${{ repo }}" - run_url="${{ repo_url }}/actions/runs/${{ job.run_id }}" - text="⚠️ The <${{ repo_url }}|${{ repo }}> project has outdated dependencies: + repo_url="${{ github.server_url }}/$repo" + run_url="$repo_url/actions/runs/${{ job.run_id }}" + text="⚠️ The <$repo_url|$repo> project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\` - <${{ run_url }}|View Run>" + <$run_url|View Run>" payload="{\"text\": \"$text\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: From e9a0b345e29afd7ccf41be4e5768f5865f988956 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 16:39:34 +0200 Subject: [PATCH 126/129] try --- .github/workflows/outdated-dependencies.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 99590cfa9e..98609c2c20 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -31,7 +31,7 @@ jobs: outdated_dependencies=$(cat output) repo="${{ github.repository }}" repo_url="${{ github.server_url }}/$repo" - run_url="$repo_url/actions/runs/${{ job.run_id }}" + run_url="$repo_url/actions/runs/${{ github.run_id }}" text="⚠️ The <$repo_url|$repo> project has outdated dependencies: \`\`\` $outdated_dependencies @@ -41,19 +41,3 @@ jobs: curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} - # - name: Report Status - # if: always() - # uses: ravsamhq/notify-slack-action@v2 - # with: - # status: ${{ job.status }} - # message_format: | - # {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> - # ``` - # ${{ env.multiline_output }} - # ${{ env.OUTDATED_DEPENDENCIES }} - # ``` - # # notify_when: "failure" - # notification_title: "Outdated dependencies" - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} - # OUTDATED_DEPENDENCIES: ${{ env.multiline_output }} From 591e74f4041208bf7bfea8cb2ed0ba98a6f6f499 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 16:44:22 +0200 Subject: [PATCH 127/129] uncomment cron --- .github/workflows/outdated-dependencies.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 98609c2c20..5d7206d551 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -1,11 +1,8 @@ name: Check outdated dependencies on: - push: - branches: ["pro-4734-check-outdated-deps"] - # TODO: uncomment schedule - # schedule: - # # Runs Mon-Fri at 0:00 UTC ( 00:00 EST ) - # - cron: "0 0 * * 1-5" + schedule: + # Runs Mon-Fri at 0:00 UTC ( 00:00 EST ) + - cron: "0 0 * * 1-5" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 462b5d7d67cefd16336c795c8a004fdcd9413211 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Wed, 27 Sep 2023 16:45:30 +0200 Subject: [PATCH 128/129] better readability --- .github/workflows/outdated-dependencies.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 5d7206d551..9df00b1d15 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -26,14 +26,17 @@ jobs: if: failure() run: | outdated_dependencies=$(cat output) + repo="${{ github.repository }}" repo_url="${{ github.server_url }}/$repo" run_url="$repo_url/actions/runs/${{ github.run_id }}" + text="⚠️ The <$repo_url|$repo> project has outdated dependencies: \`\`\` $outdated_dependencies \`\`\` <$run_url|View Run>" + payload="{\"text\": \"$text\"}" curl -X POST -H 'Content-type: application/json' --data "$payload" $SLACK_WEBHOOK_URL env: From 94b09bfb33409cd74538ddba574c306d4746bae0 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Thu, 28 Sep 2023 14:31:16 +0200 Subject: [PATCH 129/129] run every week --- .github/workflows/outdated-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/outdated-dependencies.yml b/.github/workflows/outdated-dependencies.yml index 9df00b1d15..7b67ff79f5 100644 --- a/.github/workflows/outdated-dependencies.yml +++ b/.github/workflows/outdated-dependencies.yml @@ -1,8 +1,8 @@ name: Check outdated dependencies on: schedule: - # Runs Mon-Fri at 0:00 UTC ( 00:00 EST ) - - cron: "0 0 * * 1-5" + # Runs every Monday at 8:00 + - cron: "0 8 * * MON" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: