From b9c5d9df53b3febdae28a1debf61cad204e480ee Mon Sep 17 00:00:00 2001 From: 64J0 Date: Wed, 19 Jun 2024 21:28:44 -0300 Subject: [PATCH] fix: example and action --- .github/workflows/on-tag-creation.yml | 1 + README.org | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on-tag-creation.yml b/.github/workflows/on-tag-creation.yml index 27582a7..de24a5a 100644 --- a/.github/workflows/on-tag-creation.yml +++ b/.github/workflows/on-tag-creation.yml @@ -47,5 +47,6 @@ jobs: # needs to be a PAT to update the workflows/ folder github-token: ${{ secrets.PAT_GITHUB }} git-tags: ${{ env.THIS_GIT_TAGS }} + base: 'master' \ No newline at end of file diff --git a/README.org b/README.org index 5237741..5a3ff6d 100644 --- a/README.org +++ b/README.org @@ -35,9 +35,9 @@ Since GitHub does not offer this feature, I decided to create it myself. - name: Get the repository tags 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: FsharpGHActions/git-tag-to-workflow-dispatch@master @@ -49,6 +49,7 @@ Since GitHub does not offer this feature, I decided to create it myself. # needs to be a PAT to update the workflows/ folder github-token: ${{ secrets.PAT_GITHUB }} git-tags: ${{ env.THIS_GIT_TAGS }} + base: 'main' #+END_SRC ** How to use it? @@ -62,7 +63,7 @@ Since GitHub does not offer this feature, I decided to create it myself. | workflow-yaml-key | Specify the workflow YAML key that will be updated. | | | github-token | PAT token with more information at [[#personal-access-token---pat][Personal Access Token - PAT]]. | | | git-tags | The repository tags from the newest to the oldest. Example [[#extracting-the-tags][Extract the tags]]. | | -| base | Sets the pull request base branch. | | +| base | Sets the pull request base branch. Usually it's 'main' or 'master'. | | *** Optional input arguments