Skip to content

Commit 2580615

Browse files
committed
remove unused step
1 parent 58f27af commit 2580615

3 files changed

Lines changed: 8 additions & 60 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,21 @@ env:
88
BRANCH_NAME: ${{ github.ref_name }}
99

1010
jobs:
11-
get_commit_id:
12-
runs-on: ubuntu-22.04
13-
outputs:
14-
commit_id: ${{ steps.commit_id.outputs.commit_id }}
15-
sha_short: ${{ steps.commit_id.outputs.sha_short }}
16-
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
20-
with:
21-
ref: ${{ env.BRANCH_NAME }}
22-
23-
- name: Get Commit ID
24-
id: commit_id
25-
run: |
26-
# echo "commit_id=${{ github.sha }}" >> "$GITHUB_ENV"
27-
echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
28-
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
2911
get_config_values:
3012
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@b0172dbdb3af4ae232873106553c316d79d784fc
3113
with:
3214
verify_published_from_main_image: true
3315
quality_checks:
3416
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
35-
needs: [get_config_values, get_commit_id]
17+
needs: [get_config_values]
3618
with:
3719
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
3820
run_docker_scan: false
3921
secrets:
4022
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4123

4224
tag_release:
43-
needs: [quality_checks, get_commit_id, get_config_values]
25+
needs: [quality_checks, get_config_values]
4426
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
4527
with:
4628
dry_run: true
@@ -51,7 +33,7 @@ jobs:
5133
secrets: inherit
5234

5335
package_npm_code:
54-
needs: [quality_checks, get_commit_id, get_config_values]
36+
needs: [quality_checks, get_config_values]
5537
uses: ./.github/workflows/package_npm_code.yml
5638
with:
5739
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}

.github/workflows/pull_request.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@b0172dbdb3af4ae232873106553c316d79d784fc
2323
quality_checks:
2424
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
25-
needs: [get_config_values, get_commit_id]
25+
needs: [get_config_values]
2626
with:
2727
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
2828
run_docker_scan: false
@@ -56,31 +56,15 @@ jobs:
5656
}
5757
result-encoding: string
5858

59-
get_commit_id:
60-
runs-on: ubuntu-22.04
61-
outputs:
62-
commit_id: ${{ steps.commit_id.outputs.commit_id }}
63-
sha_short: ${{ steps.commit_id.outputs.sha_short }}
64-
steps:
65-
- name: Checkout code
66-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
67-
with:
68-
ref: ${{ env.BRANCH_NAME }}
69-
70-
- name: Get Commit ID
71-
id: commit_id
72-
run: |
73-
echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
74-
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
7559

7660
package_npm_code:
77-
needs: [quality_checks, get_commit_id, get_config_values]
61+
needs: [quality_checks, get_config_values]
7862
uses: ./.github/workflows/package_npm_code.yml
7963
with:
8064
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
8165

8266
tag_release:
83-
needs: [get_commit_id, get_config_values]
67+
needs: [get_config_values]
8468
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
8569
with:
8670
dry_run: true

.github/workflows/release.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,17 @@ jobs:
1313
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@b0172dbdb3af4ae232873106553c316d79d784fc
1414
with:
1515
verify_published_from_main_image: true
16-
get_commit_id:
17-
runs-on: ubuntu-22.04
18-
outputs:
19-
commit_id: ${{ steps.commit_id.outputs.commit_id }}
20-
sha_short: ${{ steps.commit_id.outputs.sha_short }}
21-
22-
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
25-
with:
26-
ref: ${{ env.BRANCH_NAME }}
27-
28-
- name: Get Commit ID
29-
id: commit_id
30-
run: |
31-
# echo "commit_id=${{ github.sha }}" >> "$GITHUB_ENV"
32-
echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
33-
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
3416
quality_checks:
3517
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
36-
needs: [get_config_values, get_commit_id]
18+
needs: [get_config_values]
3719
with:
3820
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
3921
run_docker_scan: false
4022
secrets:
4123
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4224

4325
tag_release:
44-
needs: [quality_checks, get_commit_id, get_config_values]
26+
needs: [quality_checks, get_config_values]
4527
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
4628
with:
4729
dry_run: false

0 commit comments

Comments
 (0)