|
32 | 32 | chmod +x ${{ github.workspace }}/build_in_docker.sh |
33 | 33 | ${{ github.workspace }}/build_in_docker.sh kubuntu |
34 | 34 |
|
| 35 | + - name: print sha256sum |
| 36 | + run: | |
| 37 | + cat ${{ github.workspace }}/output/sha256* |
| 38 | + SHA256=$(cat ${{ github.workspace }}/output/sha256* | cut -d " " -f 1) |
| 39 | + echo "sha256=${SHA256}" >> $GITHUB_ENV |
| 40 | + |
35 | 41 | - name: Upload package artifact |
36 | 42 | uses: actions/upload-artifact@v4 |
37 | 43 | with: |
@@ -69,12 +75,13 @@ jobs: |
69 | 75 | with open('distro-metadata.json', 'r') as file: |
70 | 76 | data = json.load(file) |
71 | 77 | # Function to update the links |
72 | | - def update_links(distros, name, new_links): |
| 78 | + def update_links(distros, name, new_links, sha256): |
73 | 79 | for distro in distros: |
74 | 80 | if distro['name'] == name: |
75 | 81 | distro['iso'] = new_links |
| 82 | + distro['sha256'] = sha256 |
76 | 83 | # Update the links |
77 | | - update_links(data['all'], "Kubuntu 25.10 - Questing Quokka", [new_link1, new_link2, new_link3]) |
| 84 | + update_links(data['all'], "Kubuntu 25.10 - Questing Quokka", [new_link1, new_link2, new_link3], "${{ env.sha256 }}") |
78 | 85 | # Save the updated JSON back to the file |
79 | 86 | with open('distro-metadata.json', 'w') as file: |
80 | 87 | json.dump(data, file, indent=2) |
@@ -125,6 +132,12 @@ jobs: |
125 | 132 | chmod +x ${{ github.workspace }}/build_in_docker.sh |
126 | 133 | ${{ github.workspace }}/build_in_docker.sh ubuntu-unity |
127 | 134 |
|
| 135 | + - name: print sha256sum |
| 136 | + run: | |
| 137 | + cat ${{ github.workspace }}/output/sha256* |
| 138 | + SHA256=$(cat ${{ github.workspace }}/output/sha256* | cut -d " " -f 1) |
| 139 | + echo "sha256=${SHA256}" >> $GITHUB_ENV |
| 140 | + |
128 | 141 | - name: Upload package artifact |
129 | 142 | uses: actions/upload-artifact@v4 |
130 | 143 | with: |
@@ -162,12 +175,13 @@ jobs: |
162 | 175 | with open('distro-metadata.json', 'r') as file: |
163 | 176 | data = json.load(file) |
164 | 177 | # Function to update the links |
165 | | - def update_links(distros, name, new_links): |
| 178 | + def update_links(distros, name, new_links, sha256): |
166 | 179 | for distro in distros: |
167 | 180 | if distro['name'] == name: |
168 | 181 | distro['iso'] = new_links |
| 182 | + distro['sha256'] = sha256 |
169 | 183 | # Update the links |
170 | | - update_links(data['all'], "Ubuntu Unity 25.10 - Questing Quokka", [new_link1, new_link2, new_link3]) |
| 184 | + update_links(data['all'], "Ubuntu Unity 25.10 - Questing Quokka", [new_link1, new_link2, new_link3], "${{ env.sha256 }}") |
171 | 185 | # Save the updated JSON back to the file |
172 | 186 | with open('distro-metadata.json', 'w') as file: |
173 | 187 | json.dump(data, file, indent=2) |
|
0 commit comments