Compare commits
No commits in common. "main" and "v1.4.10" have entirely different histories.
6 changed files with 53 additions and 80 deletions
|
@ -1,33 +0,0 @@
|
|||
name: on tags
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
|
||||
- name: setup tea cli
|
||||
shell: bash
|
||||
env:
|
||||
TEA_VERSION: 0.9.2
|
||||
run: |
|
||||
wget https://dl.gitea.com/tea/${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64
|
||||
mv tea* tea
|
||||
chmod +x tea
|
||||
./tea login add --url ${{ github.server_url }} --token ${{ github.token }}
|
||||
|
||||
- name: cache release ticket id
|
||||
shell: bash
|
||||
run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref_name }}' | awk '{print $1}' > release-ticket-id
|
||||
|
||||
- name: comment & close
|
||||
shell: bash
|
||||
run: |
|
||||
./tea comment $(cat release-ticket-id) "Start tag"
|
||||
./tea issues close $(cat release-ticket-id)
|
|
@ -6,10 +6,10 @@ on:
|
|||
jobs:
|
||||
release:
|
||||
if: github.event.issue.title == 'release'
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
with:
|
||||
token: ${{ secrets.REPO_MAINTAINER_TOKEN }}
|
||||
|
||||
|
@ -30,7 +30,7 @@ jobs:
|
|||
./tea comment ${{ github.event.issue.number }} "Start creating release"
|
||||
|
||||
- name: setup node
|
||||
uses: https://github.com/actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version: 20
|
||||
|
47
.gitea/workflows/tag.yml
Normal file
47
.gitea/workflows/tag.yml
Normal file
|
@ -0,0 +1,47 @@
|
|||
name: on tags
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
|
||||
- name: setup tea cli
|
||||
shell: bash
|
||||
env:
|
||||
TEA_VERSION: 0.9.2
|
||||
run: |
|
||||
wget https://dl.gitea.com/tea/${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64
|
||||
mv tea* tea
|
||||
chmod +x tea
|
||||
./tea login add --url ${{ github.server_url }} --token ${{ github.token }}
|
||||
|
||||
- name: debug 1
|
||||
shell: bash
|
||||
run: echo 'Release ${{ github.ref }}'
|
||||
|
||||
- name: debug 2
|
||||
shell: bash
|
||||
run: ./tea i ls --fields index,title --output simple
|
||||
|
||||
- name: debug 3
|
||||
shell: bash
|
||||
run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}'
|
||||
|
||||
- name: debug 4
|
||||
shell: bash
|
||||
run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' | awk '{print $1}'
|
||||
|
||||
- name: comment tag start
|
||||
shell: bash
|
||||
run: |
|
||||
export RELEASE_TICKET_ID=$(./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' | awk '{print $1}')
|
||||
|
||||
./tea comment ${RELEASE_TICKET_ID} "Start tag"
|
||||
./tea issues close ${{ github.event.issue.number }}
|
41
CHANGELOG.md
41
CHANGELOG.md
|
@ -1,44 +1,3 @@
|
|||
## [1.6.0](https://git.keine.cloud/oliver/pipeline-test-versioning/compare/v1.5.0...v1.6.0) (2024-02-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* rename to forgejo ([94b2a6b](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/94b2a6b89b4783ba3ae9b7e8f47896c61a78dfac))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* hostname for "uses" ([f8e85ee](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/f8e85eec3b2d4bf736b05719f263964917476e86))
|
||||
* runs on docker ([3aff0f1](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/3aff0f11eb11d652f28895e87d6956578f116306))
|
||||
|
||||
## [1.5.0](https://git.keine.cloud/oliver/pipeline-test-versioning/compare/v1.4.13...v1.5.0) (2024-02-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* close release ticket from tag ([3a7fdc3](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/3a7fdc345395c3f0d74e8e5eb23543286de41d70))
|
||||
|
||||
## [1.4.13](https://git.keine.cloud/oliver/pipeline-test-versioning/compare/v1.4.12...v1.4.13) (2024-02-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* write release ticket id to tmp file ([9758968](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/9758968361530cd17ca29d4eacc62da367dd4fda))
|
||||
|
||||
## [1.4.12](https://git.keine.cloud/oliver/pipeline-test-versioning/compare/v1.4.11...v1.4.12) (2024-02-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove debugging ([bc6020d](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/bc6020d94a33e8d8873f1484af55f29ccd4cdde6))
|
||||
|
||||
## [1.4.11](https://git.keine.cloud/oliver/pipeline-test-versioning/compare/v1.4.10...v1.4.11) (2024-02-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use github.ref_name ([c7e8dbf](https://git.keine.cloud/oliver/pipeline-test-versioning/commit/c7e8dbf8325374c7c29d8e732947a86838c28613))
|
||||
|
||||
## [1.4.10](https://git.keine.cloud/oliver/pipeline-test-versioning/compare/v1.4.9...v1.4.10) (2024-02-01)
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Forgejo action test: Versioning
|
||||
# Gitea action test: Versioning
|
||||
|
||||
Is it possible to have automatic versioning like release-please or semantic-release in Forgejo?
|
||||
Is it possible to have automatic versioning like release-please or semantic-release in Gitea?
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.6.0
|
||||
1.4.10
|
||||
|
|
Loading…
Reference in a new issue