Skip to content

Commit

Permalink
fix: example and action
Browse files Browse the repository at this point in the history
  • Loading branch information
64J0 committed Jun 20, 2024
1 parent dfe325a commit b9c5d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on-tag-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'


7 changes: 4 additions & 3 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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?
Expand All @@ -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

Expand Down

0 comments on commit b9c5d9d

Please sign in to comment.