Add .gitea/workflows/*.yaml

This commit is contained in:
2025-10-19 20:03:37 -07:00
parent f77fb3c669
commit 812ba2537d
3 changed files with 15 additions and 34 deletions

View File

@@ -0,0 +1,14 @@
name: Github context
on:
workflow_dispatch:
jobs:
print-variables:
runs-on: ubuntu-latest
steps:
- name: Print variables
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"

View File

@@ -1,31 +0,0 @@
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
id: tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.REGISTRY_TOKEN }}
release_branches: main
default_bump: minor # major, minor, or patch
tag_prefix: v
- name: Show new tag
run: echo "New tag is ${{ steps.tag.outputs.new_tag }}"