Compare commits

..

2 Commits

Author SHA1 Message Date
85756c2fff gd
All checks were successful
Deploy Release / Build (push) Successful in 6s
2024-07-02 00:54:41 +08:00
70483d9267 hh
All checks were successful
Deploy Release / Build (push) Successful in 6s
2024-07-02 00:53:32 +08:00
2 changed files with 5 additions and 14 deletions

View File

@ -5,17 +5,6 @@ on:
tags:
- 'v*'
jobs:
PullDocker:
runs-on: [ubuntu-latest, ubuntu-24.04]
steps:
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: frp-by1.wwvvww.cn:45288
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Pull Docker image
run: docker pull frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04
Build:
runs-on: [ubuntu-latest, ubuntu-24.04]
container:
@ -29,7 +18,9 @@ jobs:
- name: Generate Changelog
run: |
set -eux
resources/build.sh
echo "gdgd"
git log $(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))..$(git describe --tags --abbrev=0) --reverse --pretty=format:"%B"
git log $(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))..$(git describe --tags --abbrev=0) --reverse --pretty=format:"%B" | nl -w2 -s". "
git log $(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))..$(git describe --tags --abbrev=0) --reverse --pretty=format:"%B" | nl -w2 -s". " > ${{ github.workspace }}-CHANGELOG.txt
- name: Upload Gitea Release
uses: akkuman/gitea-release-action@v1

View File

@ -1,8 +1,8 @@
#!/bin/bash
set -eux
function changelog(){
function changelog(){
current_tag=$(git describe --tags --abbrev=0)
previous_tag=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))
git log ${previous_tag}..${current_tag} --reverse --pretty=format:"%B" | nl -w2 -s". " > CHANGELOG.txt