Skip to content

Commit b9c5d9d

Browse files
committed
fix: example and action
1 parent dfe325a commit b9c5d9d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/on-tag-creation.yml

+1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ jobs:
4747
# needs to be a PAT to update the workflows/ folder
4848
github-token: ${{ secrets.PAT_GITHUB }}
4949
git-tags: ${{ env.THIS_GIT_TAGS }}
50+
base: 'master'
5051

5152

README.org

+4-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Since GitHub does not offer this feature, I decided to create it myself.
3535
- name: Get the repository tags
3636
run: |
3737
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')
38-
38+
3939
echo "Git tags: ${THIS_GIT_TAGS}"
40-
40+
4141
echo "THIS_GIT_TAGS=${THIS_GIT_TAGS}" >> "${GITHUB_ENV}"
4242
- name: Run custom action
4343
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.
4949
# needs to be a PAT to update the workflows/ folder
5050
github-token: ${{ secrets.PAT_GITHUB }}
5151
git-tags: ${{ env.THIS_GIT_TAGS }}
52+
base: 'main'
5253
#+END_SRC
5354

5455
** How to use it?
@@ -62,7 +63,7 @@ Since GitHub does not offer this feature, I decided to create it myself.
6263
| workflow-yaml-key | Specify the workflow YAML key that will be updated. | |
6364
| github-token | PAT token with more information at [[#personal-access-token---pat][Personal Access Token - PAT]]. | |
6465
| git-tags | The repository tags from the newest to the oldest. Example [[#extracting-the-tags][Extract the tags]]. | |
65-
| base | Sets the pull request base branch. | |
66+
| base | Sets the pull request base branch. Usually it's 'main' or 'master'. | |
6667

6768
*** Optional input arguments
6869

0 commit comments

Comments
 (0)