Skip to content

Commit e9be363

Browse files
committed
ci: add actions:write permission and fix semrel version check
1 parent f1daf7f commit e9be363

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/semrel-release.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818

1919
permissions:
2020
contents: write
21+
actions: write
2122

2223
jobs:
2324
release:
@@ -49,7 +50,7 @@ jobs:
4950
--pattern "semrel_*_linux_amd64.tar.gz" --dir /tmp
5051
tar -xzf /tmp/semrel_*_linux_amd64.tar.gz -C /tmp
5152
chmod +x /tmp/semrel
52-
echo "semrel $(/tmp/semrel version)"
53+
echo "semrel $(/tmp/semrel --version 2>/dev/null || /tmp/semrel version 2>/dev/null || echo installed)"
5354
5455
- name: Install plugins from source
5556
# Build condition-github-actions from source (main branch) until binary

0 commit comments

Comments
 (0)