Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
og-mrk committed Jul 28, 2024
1 parent 753d9f9 commit c63c9aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/createchangelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
fetch-tags: 'true'
submodules: 'recursive'
ref: ${{ github.ref_name }}
ref: ${{ github.ref }}

- name: Get all releases and update changelog.md file
run: |
Expand Down Expand Up @@ -112,6 +112,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if ['${{ github.event_name }}' = 'release']; then
git branch --contains ${{ github.ref }} | grep -Po '\*\s*.*' | sed 's/\* //g' > branch_name.txt
fi
cat branch_name.txt
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add docs/changelog.md
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
fetch-tags: 'true'
submodules: 'recursive'
ref: ${{ github.ref_name }}
ref: ${{ github.ref }}

- name: Setup Python
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-tags: 'true'
submodules: 'recursive'
ref: ${{ github.ref_name }}
ref: ${{ github.ref }}

- name: Extract Version from winutil.ps1
id: extract_version
Expand Down

0 comments on commit c63c9aa

Please sign in to comment.