Skip to content

Commit

Permalink
update release GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Jul 18, 2023
1 parent f2cb657 commit 23e08ce
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_on_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
permissions:
contents: read
steps:
- uses: inbo/actions/check_pkg@main
- uses: inbo/actions/check_pkg@checklist-0.3.6
2 changes: 1 addition & 1 deletion .github/workflows/check_on_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: inbo/actions/check_pkg@main
- uses: inbo/actions/check_pkg@checklist-0.3.6
24 changes: 13 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,29 @@ on:
tags:
- v*
workflow_run:
workflows: ["check package on main"]
workflows: ["check package on main with checklist"]
types:
- completed

jobs:

build:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Get tag message
- name: Get tag
run: |
git fetch --tags --force
TAG=$(git tag --contains $(git rev-parse HEAD))
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) -n100 | awk '(NR>2)')
echo "TAG=$TAG" >> $GITHUB_OUTPUT
echo "TAG_BODY=$TAG_BODY" >> $GITHUB_OUTPUT
id: tag-body
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) --format='%(contents)')
echo "tag=$TAG" >> $GITHUB_ENV
echo "$TAG_BODY" > body.md
- run: |
echo "${{ env.tag }}"
cat body.md
- uses: ncipollo/release-action@v1
with:
name: Release ${{ steps.tag-body.outputs.TAG }}
tag: ${{ steps.tag-body.outputs.TAG }}
body: ${{ steps.tag-body.outputs.TAG_BODY }}
name: Release ${{ env.tag }}
tag: ${{ env.tag }}
bodyFile: body.md
9 changes: 3 additions & 6 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: 'territoria: Clustering Observations from Breeding Birds into Territoria'
title: "territoria: Clustering Observations from Breeding Birds into Territoria"
authors:
- given-names: Thierry
family-names: Onkelinx
Expand All @@ -18,9 +18,6 @@ doi: ~
license: GPL-3.0
repository-code: https://github.com/inbo/territoria/
type: software
abstract: Clusters individual observations based on breeding indication and distance
between observations.
identifiers:
- type: url
value: []
abstract: "Clusters individual observations based on breeding indication and distance
between observations."
version: 0.0.3
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# territoria 0.0.3

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

# territoria 0.0.2

Expand Down

0 comments on commit 23e08ce

Please sign in to comment.