Skip to content

Commit 3fdc184

Browse files
committed
remove unneeded actions
1 parent 364ced9 commit 3fdc184

3 files changed

Lines changed: 1 addition & 64 deletions

File tree

.github/workflows/get-repo-config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
- name: Checkout code
5757
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
5858
with:
59-
ref: ${{ env.BRANCH_NAME }}
6059
fetch-depth: 0
6160
persist-credentials: false
6261

.github/workflows/pr_title_check.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -51,43 +51,6 @@ jobs:
5151
exit 1
5252
fi
5353
54-
- name: Comment on PR with Jira Link
55-
if: steps.extract_ticket_reference.outcome == 'success' && steps.extract_ticket_reference.outputs.TICKET_REF != 'dependabot'
56-
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
TICKET_REF: ${{ steps.extract_ticket_reference.outputs.TICKET_REF }}
60-
with:
61-
message: |
62-
This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:
63-
# [${{ env.TICKET_REF }}](https://nhsd-jira.digital.nhs.uk/browse/${{ env.TICKET_REF }})
64-
comment-tag: pr-link
65-
66-
- name: Comment on PR for dependabot
67-
if: steps.extract_ticket_reference.outcome == 'success' && steps.extract_ticket_reference.outputs.TICKET_REF == 'dependabot'
68-
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71-
with:
72-
message: |
73-
This PR is raised by Dependabot to update a dependency.
74-
comment-tag: pr-link
75-
76-
- name: Comment on PR for bad format
77-
if: steps.check_prefix.outcome != 'success' || steps.check_ticket_reference.outcome != 'success'
78-
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-
with:
82-
message: |
83-
The PR title does not conform to the required format.
84-
Please ensure your PR title is prefixed with a change type (Fix, Update, New, Breaking, Docs, Build, Upgrade, Chore)
85-
and contains a ticket reference (eg. 'Fix: [AEA-####] - ...', or 'Chore: [dependabot] - ...'),
86-
then push an empty commit or recreate your PR.
87-
See the contributing guide for more details:
88-
https://github.com/NHSDigital/eps-common-workflows/blob/main/CONTRIBUTING.md
89-
comment-tag: pr-link
90-
9154
- name: Fail job due to invalid PR title format
9255
if: steps.check_prefix.outcome != 'success' || steps.check_ticket_reference.outcome != 'success'
9356
run: |

.github/workflows/tag-release-devcontainer.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -253,29 +253,6 @@ jobs:
253253
run: |
254254
npx semantic-release --tag-format "${TAG_FORMAT}"
255255
256-
- name: Get release for editing
257-
if: ${{ !inputs.dry_run }}
258-
id: get_release
259-
# version 1.2.4
260-
uses: cardinalby/git-get-release-action@5172c3a026600b1d459b117738c605fabc9e4e44
261-
env:
262-
GITHUB_TOKEN: ${{ github.token }}
263-
with:
264-
tag: ${{ steps.output_version_tag.outputs.VERSION_TAG }}
265-
266-
- name: Edit Release
267-
if: ${{ !inputs.dry_run }}
268-
# version 1.2.0
269-
uses: irongut/EditRelease@ccf529ad26dddf9996e7dd0f24ca5da4ea507cc2
270-
with:
271-
token: ${{ secrets.GITHUB_TOKEN }}
272-
id: ${{ steps.get_release.outputs.id }}
273-
body: |
274-
## Info
275-
[Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - Workflow ID: ${{ github.run_id }}
276-
277-
It was initialized by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
278-
279256
- name: Checkout gh-pages branch
280257
if: ${{ !inputs.dry_run }}
281258
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -289,7 +266,6 @@ jobs:
289266
if: ${{ !inputs.dry_run }}
290267
working-directory: gh-pages
291268
env:
292-
RELEASE_ID: ${{ steps.get_release.outputs.id }}
293269
VERSION_TAG: ${{ steps.output_version_tag.outputs.VERSION_TAG }}
294270
GH_REPO: ${{ github.repository }}
295271
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -299,8 +275,7 @@ jobs:
299275
notes_dir="release_notes"
300276
mkdir -p "$notes_dir"
301277
note_file="$notes_dir/${VERSION_TAG}.md"
302-
303-
gh api "/repos/${GH_REPO}/releases/${RELEASE_ID}" | jq -r '.body // ""' > "$note_file"
278+
cp ../electronic-prescription-service-api/CHANGELOG.md "$note_file"
304279
305280
if [ ! -s "$note_file" ]; then
306281
echo "Release notes are empty; skipping gh-pages update."

0 commit comments

Comments
 (0)