Skip to content

Commit afbb436

Browse files
committed
Adding tests for branches with slash in names.
1 parent f624ce0 commit afbb436

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/branchtest.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test branches with slash in name
2+
on: [push]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
# To use this repository's private action, you must check out the repository
9+
- uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
13+
- name: Generate changelog
14+
id: changelog
15+
uses: metcalfc/changelog-generator@main
16+
with:
17+
myToken: ${{ secrets.GITHUB_TOKEN }}
18+
head-ref: 'origin/test/branch' #add 'origin/` in front of your branch name
19+
base-ref: 'v1.0.0'
20+
fetch: false
21+
22+
- name: Get the changelog
23+
run: |
24+
cat << "EOF"
25+
${{ steps.changelog.outputs.changelog }}
26+
EOF
27+

.github/workflows/changelog.yml .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test
1+
name: Test the changelog action
22
on: [push]
33

44
jobs:

0 commit comments

Comments
 (0)