Add .gitea/workflows/*.yaml
This commit is contained in:
26
.gitea/workflows/012_pat.yaml
Normal file
26
.gitea/workflows/012_pat.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Pat Bump Tag
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
# Accessing the context for Github
|
||||
if: ${{ github.event.pull_request.merged == true }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: Bump version and push tag
|
||||
uses: anothrNick/github-tag-action@1.64.0
|
||||
env:
|
||||
# if you don't want to set write permissions use a PAT token
|
||||
GITHUB_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
WITH_V: true
|
||||
Reference in New Issue
Block a user