From afbb4363567d18d0e60952b46404c511af5ea1ce Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Mon, 13 Mar 2023 12:23:02 -0700 Subject: [PATCH] Adding tests for branches with slash in names. --- .github/workflows/branchtest.yaml | 27 +++++++++++++++++++ .github/workflows/{changelog.yml => test.yml} | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/branchtest.yaml rename .github/workflows/{changelog.yml => test.yml} (98%) diff --git a/.github/workflows/branchtest.yaml b/.github/workflows/branchtest.yaml new file mode 100644 index 0000000..10e9553 --- /dev/null +++ b/.github/workflows/branchtest.yaml @@ -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 + diff --git a/.github/workflows/changelog.yml b/.github/workflows/test.yml similarity index 98% rename from .github/workflows/changelog.yml rename to .github/workflows/test.yml index 6ebc001..1c8903f 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: test +name: Test the changelog action on: [push] jobs: