Skip to content

Commit 39cd950

Browse files
authored
Update publish_new_release.yaml
1 parent 3809d5b commit 39cd950

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish_new_release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
4949
echo "${{ secrets.SSH_KEY }}" | base64 --decode > $HOME/id_rsa
5050
chmod 600 $HOME/id_rsa
51+
echo "prior to ssh"
5152
ssh -i $HOME/id_rsa -o StrictHostKeyChecking=accept-new ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_DOMAIN }} -p ${{ secrets.SSH_PORT }} 'sudo -u postgres psql librescore -c "create or replace function auth.check_token() returns void language plpgsql as \$\$ begin if current_setting('"'request.jwt.claims', true)::json->>'version' not in ('server', '${{ steps.get-latest-release.outputs.CURRENT_VERSION }}', '${{ steps.get-latest-release.outputs.LATEST_VERSION }}') then raise insufficient_privilege using hint = 'Outdated version'"'; end if; end \$\$;"'
5253
- name: Upload assets
5354
if: env.updated == 'true'

0 commit comments

Comments
 (0)