Skip to content

Commit 3f30bdc

Browse files
committed
Fix tag format in release workflows
1 parent 590877b commit 3f30bdc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/create-release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
tags:
4-
- 'litani-*'
4+
- '*'
55

66
name: Create Release
77

@@ -15,12 +15,12 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v2
1717
- name: Get Version
18-
run: echo "VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)" >> $GITHUB_ENV
18+
run: echo "VERSION=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
1919
- name: Create release
2020
uses: actions/create-release@v1
2121
with:
22-
tag_name: litani-${{ env.VERSION }}
23-
release_name: litani-${{ env.VERSION }}
22+
tag_name: ${{ env.VERSION }}
23+
release_name: ${{ env.VERSION }}
2424
body: |
2525
This is Litani version ${{ env.VERSION }}.
2626
@@ -40,7 +40,7 @@ jobs:
4040
4141
## Ubuntu
4242
43-
On Ubuntu, install Litani by downloading the *.deb package below for Ubuntu 20 and install with
43+
On Ubuntu, install Litani by downloading the *.deb package below for ubuntu-20.04 and install with
4444
4545
```sh
4646
# Ubuntu 20.04:

.github/workflows/release-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Get Version
15-
run: echo "VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)" >> $GITHUB_ENV
15+
run: echo "VERSION=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
1616
- name: Setup directory for deb package
1717
run: |
1818
sudo apt-get install -y mandoc scdoc ninja-build

0 commit comments

Comments
 (0)