Skip to content

chore: stop publishing new releases #57

chore: stop publishing new releases

chore: stop publishing new releases #57

Workflow file for this run

name: On tag creation
on:
workflow_dispatch:
push:
tags: # https://github.com/orgs/community/discussions/25302
- '*'
# Kill other jobs when we trigger this workflow by sending new commits
# to the PR.
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
custom-action:
name: Update workflow dispatch tags
runs-on: ubuntu-22.04
strategy:
matrix:
# files: [example-001.yml, example-002.yml, example-003.yml]
files: [example-001.yml]
steps:
# Example for testing the action:
# https://github.com/microsoft/action-python/blob/main/.github/workflows/test.yml#L8
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # to get the tags
path: tagaction
- name: Get the repository tags
working-directory: ./tagaction
run: |
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')
echo "Git tags: ${THIS_GIT_TAGS}"
echo "THIS_GIT_TAGS=${THIS_GIT_TAGS}" >> "${GITHUB_ENV}"
- name: Run custom action
uses: ./tagaction
with:
values-to-take: 5
workflow-file-name: ${{ matrix.files }}
workflow-yaml-key: 'version'
pull-request: true
# needs to be a PAT to update the workflows/ folder
github-token: ${{ secrets.PAT_GITHUB }}
git-tags: ${{ env.THIS_GIT_TAGS }}
base: 'master'