-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests for branches with slash in names.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: test | ||
name: Test the changelog action | ||
on: [push] | ||
|
||
jobs: | ||
|