From 6d082330e6dcfb5779cf265b5d93bda2ad519ec0 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Thu, 5 May 2022 08:00:21 +0200 Subject: [PATCH] replace failing curl with http-request-action [ci skip] --- .github/workflows/dl-stats.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dl-stats.yml b/.github/workflows/dl-stats.yml index 81b63d3f1..fceaea1d3 100644 --- a/.github/workflows/dl-stats.yml +++ b/.github/workflows/dl-stats.yml @@ -53,12 +53,10 @@ jobs: INTERVAL: 900 JSON_DATA: ${{ steps.get-stats.outputs.result }} - name: Upload Results - id: upload-stats - run: | - echo ${STATS} | curl -X POST -H "Authorization: Bearer ${BEARER_TOKEN}" -H "Content-Type: application/json" "https://graphite-us-central1.grafana.net/metrics" --data-binary @- - env: - BEARER_TOKEN : ${{ secrets.GRAFANA_GRAPHITE_TOKEN }} - STATS: ${{ steps.transform-stats.outputs.result }} - - - + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://graphite-us-central1.grafana.net/metrics' + method: 'POST' + contentType: 'application/json' + bearerToken: ${{ secrets.GRAFANA_GRAPHITE_TOKEN }} + data: ${{ steps.transform-stats.outputs.result }}