2626 vpn :
2727 description : " Version of the OpenVPN Package. Only numbers"
2828 required : true
29+ notifications :
30+ description : " IPFS hash of the Notifications Package. Must start with /ipfs/"
31+ required : true
32+ premium :
33+ description : " IPFS hash of the Premium Package. Must start with /ipfs/"
34+ required : true
2935
3036jobs :
3137 set-versions :
@@ -39,13 +45,16 @@ jobs:
3945 wireguard : ${{ steps.set_outputs.outputs.wireguard }}
4046 https : ${{ steps.set_outputs.outputs.https }}
4147 vpn : ${{ steps.set_outputs.outputs.vpn }}
48+ notifications : ${{ steps.set_outputs.outputs.notifications }}
49+ premium : ${{ steps.set_outputs.outputs.premium }}
4250 core : ${{ steps.set_outputs.outputs.core }}
4351 steps :
4452 - name : Check versions regex
4553 run : |
4654 [[ "${{ github.event.inputs.bind }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.event.inputs.ipfs }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.event.inputs.dappmanager }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && \
4755 [[ "${{ github.event.inputs.wifi }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.event.inputs.wireguard }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.event.inputs.https }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && \
48- [[ "${{ github.event.inputs.vpn }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.event.inputs.core }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "versions introduced in wrong format"; exit 1; }
56+ [[ "${{ github.event.inputs.vpn }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.event.inputs.core }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && \
57+ [[ "${{ github.event.inputs.notifications }}" =~ ^/ipfs/.+$ ]] && [[ "${{ github.event.inputs.premium }}" =~ ^/ipfs/.+$ ]] || { echo "versions introduced in wrong format"; exit 1; }
4958 - name : Checkout
5059 uses : actions/checkout@v4
5160 - name : Set new versions
5665 sed -i -e "/DAPPMANAGER_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${{ github.event.inputs.dappmanager }}"/" .dappnode_profile
5766 sed -i -e "/WIFI_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${{ github.event.inputs.wifi }}"/" .dappnode_profile
5867 sed -i -e "/WIREGUARD_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${{ github.event.inputs.wireguard }}"/" .dappnode_profile
59- sed -i -e "/HTTPS_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${{ github.event.inputs.https }}"/" .dappnode_profile
68+ sed -i -e "/HTTPS_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/${{ github.event.inputs.https }}/" .dappnode_profile
69+ sed -i -e "s|^export NOTIFICATIONS_VERSION=.*|export NOTIFICATIONS_VERSION=\"${{ github.event.inputs.notifications }}\"|" .dappnode_profile
70+ sed -i -e "s|^export PREMIUM_VERSION=.*|export PREMIUM_VERSION=\"${{ github.event.inputs.premium }}\"|" .dappnode_profile
6071 cat .dappnode_profile
6172 - name : Create dappnode_profile.sh
6273 run : cp .dappnode_profile dappnode_profile.sh
7687 echo "wireguard=${{ github.event.inputs.wireguard }}" >> $GITHUB_OUTPUT
7788 echo "https=${{ github.event.inputs.https }}" >> $GITHUB_OUTPUT
7889 echo "vpn=${{ github.event.inputs.vpn }}" >> $GITHUB_OUTPUT
90+ echo "notifications=${{ github.event.inputs.notifications }}" >> $GITHUB_OUTPUT
91+ echo "premium=${{ github.event.inputs.premium }}" >> $GITHUB_OUTPUT
7992
8093 build-debian-attended :
8194 name : Build Debian attended ISO
0 commit comments