Skip to content

Commit

Permalink
Adding tests for branches with slash in names.
Browse files Browse the repository at this point in the history
  • Loading branch information
metcalfc committed Mar 13, 2023
1 parent f624ce0 commit afbb436
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/branchtest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test branches with slash in name
on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
# To use this repository's private action, you must check out the repository
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@main
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
head-ref: 'origin/test/branch' #add 'origin/` in front of your branch name
base-ref: 'v1.0.0'
fetch: false

- name: Get the changelog
run: |
cat << "EOF"
${{ steps.changelog.outputs.changelog }}
EOF
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Test the changelog action
on: [push]

jobs:
Expand Down

0 comments on commit afbb436

Please sign in to comment.