@@ -16,11 +16,12 @@ jobs:
1616 AUTOMERGE_PEM : ${{ secrets.AUTOMERGE_PEM }}
1717 pr_title_format_check :
1818 uses : ./.github/workflows/pr_title_check.yml
19- get_asdf_version :
19+ get_config_values :
2020 runs-on : ubuntu-22.04
2121 outputs :
2222 asdf_version : ${{ steps.asdf-version.outputs.version }}
2323 tag_format : ${{ steps.load-config.outputs.TAG_FORMAT }}
24+ devcontainer_version : ${{ steps.load-config.outputs.DEVCONTAINER_VERSION }}
2425 steps :
2526 - name : Checkout code
2627 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -32,21 +33,22 @@ jobs:
3233 id : load-config
3334 run : |
3435 TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
36+ DEVCONTAINER_VERSION=$(jq -r '.build.args.IMAGE_VERSION' .devcontainer/devcontainer.json)
3537 echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
38+ echo "DEVCONTAINER_VERSION=$DEVCONTAINER_VERSION" >> "$GITHUB_OUTPUT"
3639 quality_checks :
3740 uses : ./.github/workflows/quality-checks.yml
38- needs : [get_asdf_version ]
41+ needs : [get_config_values ]
3942 with :
40- asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
41- runtime_docker_image : " ghcr.io/nhsdigital/eps-devcontainers/node_24_python_3_14:v1.0.1"
43+ runtime_docker_image : " ghcr.io/nhsdigital/eps-devcontainers/node_24_python_3_14:${{ needs.get_config_values.outputs.devcontainer_version }}"
4244 secrets :
4345 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4446 tag_release :
45- needs : [quality_checks, get_asdf_version ]
47+ needs : [quality_checks, get_config_values ]
4648 uses : ./.github/workflows/tag-release.yml
4749 with :
4850 dry_run : true
49- asdfVersion : ${{ needs.get_asdf_version .outputs.asdf_version }}
51+ asdfVersion : ${{ needs.get_config_values .outputs.asdf_version }}
5052 branch_name : ${{ github.event.pull_request.head.ref }}
51- tag_format : ${{ needs.get_asdf_version .outputs.tag_format }}
53+ tag_format : ${{ needs.get_config_values .outputs.tag_format }}
5254 secrets : inherit
0 commit comments