Skip to content

Commit

Permalink
ci-changelog get pr number (#1155)
Browse files Browse the repository at this point in the history
* ci-changelog get pr number

* add changelog news fragment
  • Loading branch information
bjlittle authored Oct 15, 2024
1 parent 00afb5e commit 9df7aed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Reference:
# - https://github.com/actions/checkout
# - https://github.com/actions/setup-python
# - https://github.com/jwalton/gh-find-current-pr
# - https://github.com/snnaplab/get-labels-action
# - https://github.com/jitterbit/get-changed-files (don't use - abandoned repo?)
# - https://github.com/dorny/paths-filter


Expand Down Expand Up @@ -41,10 +39,6 @@ jobs:
with:
python-version: '3.x'

- name: 'get PR number'
uses: jwalton/gh-find-current-pr@89ee5799558265a1e0e31fab792ebb4ee91c016b
id: pr

- name: 'get PR labels'
uses: snnaplab/get-labels-action@f426df40304808ace3b5282d4f036515f7609576

Expand All @@ -61,7 +55,7 @@ jobs:
if: ${{ ! contains(fromJSON(env.LABELS), 'skip changelog') }}
env:
CHANGELOG: "${{ steps.changes.outputs.changelog_files }}"
PR: "${{ steps.pr.outputs.number }}"
PR: "${{ github.event.number }}"
SCRIPTS: "./.github/scripts"
run: |
python -m pip install click towncrier
Expand Down
2 changes: 2 additions & 0 deletions changelog/1155.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Reverted use of the `jwalton/gh-find-current-pr <https://github.com/jwalton/gh-find-current-pr>`__
:fab:`github` Action within the ``ci-changelog`` :fab:`github` Action. (:user:`bjlittle`)

0 comments on commit 9df7aed

Please sign in to comment.