Skip to content

Commit 3e64464

Browse files
authored
updating workflow to automate testing builds
Introducing a DNSCRYPT_PROXY_VERSION file to help with versioning and automate future updates.
1 parent bd300da commit 3e64464

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
inputs:
88
dnscrypt_proxy_release:
9-
description: "DNSCrypt Proxy Release (blank = latest upstream)"
9+
description: "DNSCrypt Proxy Release (blank = use DNSCRYPT_PROXY_VERSION file)"
1010
required: false
1111

1212
env:
@@ -27,8 +27,7 @@ jobs:
2727
run: |
2828
VERSION="${{ github.event.inputs.dnscrypt_proxy_release }}"
2929
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'))")"
30+
VERSION="$(cat DNSCRYPT_PROXY_VERSION)"
3231
fi
3332
echo "DNSCRYPT_PROXY_VERSION=$VERSION" >> "$GITHUB_ENV"
3433

0 commit comments

Comments
 (0)