Add .gitea/workflows/*.yaml
This commit is contained in:
14
.gitea/workflows/012_github_context.yaml
Normal file
14
.gitea/workflows/012_github_context.yaml
Normal 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"
|
||||||
@@ -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 }}"
|
|
||||||
Reference in New Issue
Block a user