From d60b9b4bbf113ea85248af92dac9305c13bd87e1 Mon Sep 17 00:00:00 2001 From: nidexingg Date: Fri, 13 Dec 2024 15:11:07 +0700 Subject: [PATCH] testing github action v2 --- .github/workflows/release.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25e67f6..ebc898b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,8 @@ permissions: on: push: - tags: - - "v*" + branches: + - alpha # Trigger on pushes to alpha branch jobs: release: @@ -14,13 +14,25 @@ jobs: steps: - uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 0 # Fetch all history for tagging + + - name: Set Git User + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - name: Create Tag + run: | + git tag -a "v${{ github.run_number }}" -m "Release v${{ github.run_number }}" + git push origin "v${{ github.run_number }}" + - id: setup-bun name: Setup Bun uses: oven-sh/setup-bun@v1 with: bun-version: latest - - run: bunx changelogithub + - name: Generate Changelog + run: bunx changelogithub env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}