From 812ba2537d436fa8f5e8b429d37c5001fd6701d3 Mon Sep 17 00:00:00 2001 From: hangpersonal Date: Sun, 19 Oct 2025 20:03:37 -0700 Subject: [PATCH] Add .gitea/workflows/*.yaml --- .gitea/workflows/012_github_context.yaml | 14 +++++++++++ .gitea/workflows/012_pat.yaml | 31 ------------------------ README.md | 4 +-- 3 files changed, 15 insertions(+), 34 deletions(-) create mode 100644 .gitea/workflows/012_github_context.yaml delete mode 100644 .gitea/workflows/012_pat.yaml diff --git a/.gitea/workflows/012_github_context.yaml b/.gitea/workflows/012_github_context.yaml new file mode 100644 index 0000000..268f24e --- /dev/null +++ b/.gitea/workflows/012_github_context.yaml @@ -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" \ No newline at end of file diff --git a/.gitea/workflows/012_pat.yaml b/.gitea/workflows/012_pat.yaml deleted file mode 100644 index 81aabe8..0000000 --- a/.gitea/workflows/012_pat.yaml +++ /dev/null @@ -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 }}" \ No newline at end of file diff --git a/README.md b/README.md index f10aa37..db11801 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -# Gitea_Action_Test - -Test pull request with 012_pat.yaml and pull_request_test branch \ No newline at end of file +# Gitea_Action_Test \ No newline at end of file