Skip to content

Commit d625065

Browse files
committed
fix: rename docker file
1 parent e766f0e commit d625065

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/create_release.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,37 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
packages: write
12-
12+
1313
steps:
1414
- uses: actions/checkout@v4
15-
15+
1616
- name: Get JSign version
1717
id: version
1818
run: |
1919
JSIGN_VERSION=$(curl -s https://api.github.com/repos/ebourg/jsign/releases/latest | grep "tag_name" | cut -d '"' -f 4 | sed 's/^v//')
20+
if [[ -z "$JSIGN_VERSION" ]]; then
21+
echo "::error::Could not determine JSign version from GitHub API."
22+
exit 1
23+
fi
2024
echo "JSIGN_VERSION=$JSIGN_VERSION" >> $GITHUB_ENV
2125
echo "version=$JSIGN_VERSION" >> $GITHUB_OUTPUT
22-
26+
echo "Detected JSign version: $JSIGN_VERSION"
27+
28+
- name: Verify Version Output
29+
run: |
30+
if [[ -z "${{ steps.version.outputs.version }}" ]]; then
31+
echo "::error::JSign version output is empty!"
32+
exit 1
33+
fi
34+
echo "Verified JSign version output: ${{ steps.version.outputs.version }}"
35+
2336
- name: Docker login
2437
uses: docker/login-action@v3
2538
with:
2639
registry: ghcr.io
2740
username: ${{ github.actor }}
2841
password: ${{ secrets.GITHUB_TOKEN }}
29-
42+
3043
- name: Build and push
3144
uses: docker/build-push-action@v5
3245
with:

0 commit comments

Comments
 (0)