|
37 | 37 | # tag: ${{ steps.variables.outputs.tag }} |
38 | 38 | steps: |
39 | 39 | - name: "Checkout code" |
40 | | - uses: actions/checkout@v5 |
| 40 | + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 |
41 | 41 | - name: "Set CI/CD variables" |
42 | 42 | id: variables |
43 | 43 | run: | |
|
48 | 48 | echo "nodejs_version=$(grep "^nodejs\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT |
49 | 49 | echo "python_version=$(grep "^python\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT |
50 | 50 | echo "terraform_version=$(grep "^terraform\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT |
51 | | - # TODO: Get the version, but it may not be the .version file as this should come from the CI/CD Pull Request Workflow |
| 51 | + # TODO: CCM-14499 Get the version, but it may not be the .version file as this should come from the CI/CD Pull Request Workflow |
52 | 52 | echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT |
53 | 53 | # echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT |
54 | 54 | - name: "List variables" |
|
71 | 71 | needs: metadata |
72 | 72 | steps: |
73 | 73 | - name: "Checkout code" |
74 | | - uses: actions/checkout@v5 |
75 | | - |
| 74 | + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 |
76 | 75 | - name: "Get version" |
77 | 76 | id: get-asset-version |
78 | 77 | shell: bash |
@@ -104,13 +103,13 @@ jobs: |
104 | 103 | run: | |
105 | 104 | gh release download ${{steps.get-asset-version.outputs.release_version}} -p jekyll-docs-*.tar --output artifact.tar |
106 | 105 |
|
107 | | - - uses: actions/upload-artifact@v4 |
| 106 | + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
108 | 107 | with: |
109 | 108 | name: jekyll-docs-${{steps.get-asset-version.outputs.release_version}} |
110 | 109 | path: artifact.tar |
111 | 110 |
|
112 | 111 | - name: Deploy to GitHub Pages |
113 | 112 | id: deployment |
114 | | - uses: actions/deploy-pages@v4 |
| 113 | + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 |
115 | 114 | with: |
116 | 115 | artifact_name: jekyll-docs-${{steps.get-asset-version.outputs.release_version}} |
0 commit comments