Skip to content

Commit 23e08ce

Browse files
committed
update release GHA
1 parent f2cb657 commit 23e08ce

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

.github/workflows/check_on_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
permissions:
1818
contents: read
1919
steps:
20-
- uses: inbo/actions/check_pkg@main
20+
- uses: inbo/actions/check_pkg@checklist-0.3.6

.github/workflows/check_on_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
19-
- uses: inbo/actions/check_pkg@main
19+
- uses: inbo/actions/check_pkg@checklist-0.3.6

.github/workflows/release.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,29 @@ on:
55
tags:
66
- v*
77
workflow_run:
8-
workflows: ["check package on main"]
8+
workflows: ["check package on main with checklist"]
99
types:
1010
- completed
1111

1212
jobs:
13-
14-
build:
13+
publish:
1514
runs-on: ubuntu-latest
1615
permissions:
1716
contents: write
1817
steps:
1918
- uses: actions/checkout@v3
20-
- name: Get tag message
19+
- name: Get tag
2120
run: |
21+
git fetch --tags --force
2222
TAG=$(git tag --contains $(git rev-parse HEAD))
23-
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) -n100 | awk '(NR>2)')
24-
echo "TAG=$TAG" >> $GITHUB_OUTPUT
25-
echo "TAG_BODY=$TAG_BODY" >> $GITHUB_OUTPUT
26-
id: tag-body
23+
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) --format='%(contents)')
24+
echo "tag=$TAG" >> $GITHUB_ENV
25+
echo "$TAG_BODY" > body.md
26+
- run: |
27+
echo "${{ env.tag }}"
28+
cat body.md
2729
- uses: ncipollo/release-action@v1
2830
with:
29-
name: Release ${{ steps.tag-body.outputs.TAG }}
30-
tag: ${{ steps.tag-body.outputs.TAG }}
31-
body: ${{ steps.tag-body.outputs.TAG_BODY }}
31+
name: Release ${{ env.tag }}
32+
tag: ${{ env.tag }}
33+
bodyFile: body.md

CITATION.cff

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cff-version: 1.2.0
22
message: If you use this software, please cite it using these metadata.
3-
title: 'territoria: Clustering Observations from Breeding Birds into Territoria'
3+
title: "territoria: Clustering Observations from Breeding Birds into Territoria"
44
authors:
55
- given-names: Thierry
66
family-names: Onkelinx
@@ -18,9 +18,6 @@ doi: ~
1818
license: GPL-3.0
1919
repository-code: https://github.com/inbo/territoria/
2020
type: software
21-
abstract: Clusters individual observations based on breeding indication and distance
22-
between observations.
23-
identifiers:
24-
- type: url
25-
value: []
21+
abstract: "Clusters individual observations based on breeding indication and distance
22+
between observations."
2623
version: 0.0.3

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# territoria 0.0.3
22

3-
* Update [`checklist`](https://inbo.github.io/checklist/) machinery
3+
* Update [`checklist`](https://inbo.github.io/checklist/) machinery.
4+
* Release action works with multiple lines in a message.
45

56
# territoria 0.0.2
67

0 commit comments

Comments
 (0)