We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd300da commit 3e64464Copy full SHA for 3e64464
1 file changed
.github/workflows/docker-publish.yml
@@ -6,7 +6,7 @@ on:
6
workflow_dispatch:
7
inputs:
8
dnscrypt_proxy_release:
9
- description: "DNSCrypt Proxy Release (blank = latest upstream)"
+ description: "DNSCrypt Proxy Release (blank = use DNSCRYPT_PROXY_VERSION file)"
10
required: false
11
12
env:
@@ -27,8 +27,7 @@ jobs:
27
run: |
28
VERSION="${{ github.event.inputs.dnscrypt_proxy_release }}"
29
if [ -z "$VERSION" ]; then
30
- VERSION="$(curl -fsSL https://api.github.com/repos/DNSCrypt/dnscrypt-proxy/releases/latest \
31
- | python -c "import sys,json; print(json.load(sys.stdin)['tag_name'].lstrip('v'))")"
+ VERSION="$(cat DNSCRYPT_PROXY_VERSION)"
32
fi
33
echo "DNSCRYPT_PROXY_VERSION=$VERSION" >> "$GITHUB_ENV"
34
0 commit comments