Skip to content

Commit 73bfa0e

Browse files
committed
fix: verification for backup tag signing in CI workflows
1 parent 3600e6a commit 73bfa0e

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

.github/workflows/backup-publish-swift.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,6 @@ jobs:
6868
echo "::error::Tag $tag_name signature is not verified by GitHub (reason: $reason)."
6969
exit 1
7070
fi
71-
- name: Resolve logic release tag
72-
id: logic-release
73-
run: |
74-
logic_tag=$(git for-each-ref --sort=-v:refname --format='%(refname:strip=2)' --points-at HEAD 'refs/tags/v*' | head -n 1)
75-
if [ -z "$logic_tag" ]; then
76-
echo "::error::No logic release tag matching v* points at commit $(git rev-parse HEAD)."
77-
exit 1
78-
fi
79-
80-
echo "logic_tag=$logic_tag" >> "$GITHUB_OUTPUT"
81-
echo "Using logic release tag: $logic_tag"
82-
8371
- name: Setup Java and Gradle
8472
uses: ./.github/actions/setup-java-gradle
8573

@@ -93,7 +81,7 @@ jobs:
9381
- name: Upload XCFramework (GH Releases)
9482
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
9583
with:
96-
tag_name: ${{ steps.logic-release.outputs.logic_tag }}
84+
tag_name: ${{ github.ref_name }}
9785
fail_on_unmatched_files: true
9886
files: |
9987
domain/backup/build/XCFrameworks/release/KaliumBackup.xcframework.zip

.github/workflows/backup-publish-web-npm.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ jobs:
6565
echo "::error::Tag $tag_name signature is not verified by GitHub (reason: $reason)."
6666
exit 1
6767
fi
68-
- name: Resolve logic release tag
69-
id: logic-release
70-
run: |
71-
logic_tag=$(git for-each-ref --sort=-v:refname --format='%(refname:strip=2)' --points-at HEAD 'refs/tags/v*' | head -n 1)
72-
if [ -z "$logic_tag" ]; then
73-
echo "::error::No logic release tag matching v* points at commit $(git rev-parse HEAD)."
74-
exit 1
75-
fi
76-
77-
echo "logic_tag=$logic_tag" >> "$GITHUB_OUTPUT"
78-
echo "Using logic release tag: $logic_tag"
79-
8068
- name: Setup Java and Gradle
8169
uses: ./.github/actions/setup-java-gradle
8270

@@ -99,7 +87,7 @@ jobs:
9987
- name: Upload JS/TS package (GH Releases)
10088
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
10189
with:
102-
tag_name: ${{ steps.logic-release.outputs.logic_tag }}
90+
tag_name: ${{ github.ref_name }}
10391
fail_on_unmatched_files: true
10492
files: |
10593
domain/backup/build/dist/js/productionLibrary/${{ steps.pack.outputs.package_tgz }}

0 commit comments

Comments
 (0)