diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 1d118cd..bd829a6 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -46,14 +46,13 @@ jobs: chmod 600 "$HOME/.ssh/key" rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/_site/ "${{ secrets.USERNAME }}@mailadm.testrun.org:providerOverview/${{ steps.prepare.outputs.prid }}/" - - name: "Post links to details" + - name: Post links to details if: steps.prepare.outputs.uploadtoserver id: details run: | - # URLs for API connection and uploads. + # Post preview link to details. GITHUB_API_URL="https://api.github.com/repos/deltachat/provider-db/statuses/${{ github.event.after }}" PREVIEW_LINK="https://mailadm.testrun.org/provider/${{ steps.prepare.outputs.prid }}/" - # Post preview link to details. STATUS_DATA="{\"state\": \"success\", \ \"description\": \"Preview the page here:\", \ \"context\": \"Page Preview\", \ @@ -66,7 +65,7 @@ jobs: echo $RESPONSE > result grep -v '"Check out the page preview at https://mailadm.testrun.org/' result && echo "comment=true" >> $GITHUB_OUTPUT || true - - name: "Post link to comments" + - name: Post link to comments if: steps.details.outputs.comment uses: actions/github-script@v6 with: