Github: Disable survey key request for now
This commit is contained in:
15
.github/workflows/release-source.yml
vendored
15
.github/workflows/release-source.yml
vendored
@@ -152,13 +152,14 @@ jobs:
|
|||||||
- name: Generate survey key
|
- name: Generate survey key
|
||||||
id: survey_key
|
id: survey_key
|
||||||
run: |
|
run: |
|
||||||
PAYLOAD='{"version":"${{ steps.metadata.outputs.version }}","type":"${{ vars.SURVEY_TYPE }}"}'
|
#PAYLOAD='{"version":"${{ steps.metadata.outputs.version }}","type":"${{ vars.SURVEY_TYPE }}"}'
|
||||||
|
#
|
||||||
echo "${{ secrets.SURVEY_SIGNING_KEY }}" > survey_signing_key.pem
|
#echo "${{ secrets.SURVEY_SIGNING_KEY }}" > survey_signing_key.pem
|
||||||
SIGNATURE=$(echo -n "${PAYLOAD}" | openssl dgst -sha256 -sign survey_signing_key.pem | base64 -w0)
|
#SIGNATURE=$(echo -n "${PAYLOAD}" | openssl dgst -sha256 -sign survey_signing_key.pem | base64 -w0)
|
||||||
rm -f survey_signing_key.pem
|
#rm -f survey_signing_key.pem
|
||||||
|
#
|
||||||
SURVEY_KEY=$(curl -f -s -X POST -d "${PAYLOAD}" -H "Content-Type: application/json" -H "X-Signature: ${SIGNATURE}" https://survey-participate.openttd.org/create-survey-key/${{ vars.SURVEY_TYPE }})
|
#SURVEY_KEY=$(curl -f -s -X POST -d "${PAYLOAD}" -H "Content-Type: application/json" -H "X-Signature: ${SIGNATURE}" https://survey-participate.openttd.org/create-survey-key/${{ vars.SURVEY_TYPE }})
|
||||||
|
SURVEY_KEY=""
|
||||||
|
|
||||||
echo "survey_key=${SURVEY_KEY}" >> $GITHUB_OUTPUT
|
echo "survey_key=${SURVEY_KEY}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user