Compare commits
3
Commits
v3.0.1
...
aa7852418b
No files matched your search
@@ -23,6 +23,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
# Public source. A repo without its own cliff.toml downloads this file.
|
||||||
|
- name: Use shared cliff.toml when the repo has none
|
||||||
|
env:
|
||||||
|
CLIFF_REPO: ${{ vars.CLIFF_CONFIG_REPO || 'gitea/global-workflow' }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [[ -f cliff.toml ]]; then
|
||||||
|
echo "Using cliff.toml from this repository"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
url="${GITHUB_API_URL}/repos/${CLIFF_REPO}/raw/cliff.toml?ref=main"
|
||||||
|
echo "No cliff.toml in this repository; fetching ${url}"
|
||||||
|
curl --silent --show-error --fail --location --output cliff.toml "$url"
|
||||||
|
|
||||||
# Gitea's GITHUB_TOKEN is rejected by api.github.com. Pass a github.com PAT instead.
|
# Gitea's GITHUB_TOKEN is rejected by api.github.com. Pass a github.com PAT instead.
|
||||||
- name: Generate release notes
|
- name: Generate release notes
|
||||||
uses: orhun/git-cliff-action@v4
|
uses: orhun/git-cliff-action@v4
|
||||||
@@ -35,5 +49,6 @@ jobs:
|
|||||||
- name: Create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v3
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
|
# prerelease only when the tag contains "-alpha", "-beta" or "-rc". ex: v1.0.0-alpha.1, v1.0.0-beta.1, v1.0.0-rc.1
|
||||||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') }}
|
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') }}
|
||||||
body_path: release-notes.md
|
body_path: release-notes.md
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
name: Test workflow
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
echo "$GITHUB_TOKEN"
|
|
||||||
echo "$DT_API_KEY"
|
|
||||||
echo "$RELEASE_TOKEN"
|
|
||||||
echo "$SONAR_TOKEN"
|
|
||||||
Reference in new issue
Block a user