Skip to content

docs: rename gh action #1

docs: rename gh action

docs: rename gh action #1

Workflow file for this run

---
name: Test CI
on:
pull_request:
paths: [.github/workflows/test_ci.yaml, action.yml]
jobs:
ci:
runs-on: ubuntu-24.04
permissions:
contents: read # Required to checkout repository.
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
persist-credentials: false
- name: Changed diff-tree
id: changed
uses: ./
with:
working-directory: tests/${{ matrix.test }}
- name: Tag release version
env:
GH_TOKEN: ${{ github.token }}
GH_TAG: ${{ github.event.release.tag_name}}
run: |
version=${GH_TAG%%.*}
gh api /repos/${{ github.repository }}/git/refs/tags/${version} --method PATCH --silent --field sha="${GITHUB_SHA}" --field force=true || \
gh api /repos/${{ github.repository }}/git/refs --method POST --silent --field sha="${GITHUB_SHA}" --field ref="refs/tags/${version}"