22name : test-deployment-info
33
44on :
5- push :
6- branches-ignore :
7- - main
5+ pull_request :
86
97jobs :
108 test-action :
@@ -47,31 +45,31 @@ jobs:
4745 - name : Check `branch_tag_kebab`
4846 uses : nick-fields/assert-action@v1
4947 with :
50- expected : ${{ env.GITHUB_REF_SLUG }}
48+ expected : refs-pull- ${{ github.event.number }}-merge
5149 actual : ${{ steps.get-deployment-info.outputs.branch_tag_kebab }}
5250
5351 - name : Check `image_latest_artifact`
5452 uses : nick-fields/assert-action@v1
5553 with :
56- expected : europe-west6-docker.pkg.dev/my-test-project/my-affix/my-test-service:branch -${{ env.GITHUB_REF_SLUG }}-latest
54+ expected : europe-west6-docker.pkg.dev/my-test-project/my-affix/my-test-service:pull -${{ github.event.number }}-latest
5755 actual : ${{ steps.get-deployment-info.outputs.image_latest_artifact }}
5856
5957 - name : Check `image_latest_tag`
6058 uses : nick-fields/assert-action@v1
6159 with :
62- expected : branch -${{ env.GITHUB_REF_SLUG }}-latest
60+ expected : pull -${{ github.event.number }}-latest
6361 actual : ${{ steps.get-deployment-info.outputs.image_latest_tag }}
6462
6563 - name : Check `image_version_artifact`
6664 uses : nick-fields/assert-action@v1
6765 with :
68- expected : europe-west6-docker.pkg.dev/my-test-project/my-affix/my-test-service:branch -${{ env.GITHUB_REF_SLUG }}
66+ expected : europe-west6-docker.pkg.dev/my-test-project/my-affix/my-test-service:pull -${{ github.event.number }}
6967 actual : ${{ steps.get-deployment-info.outputs.image_version_artifact }}
7068
7169 - name : Check `image_version_tag`
7270 uses : nick-fields/assert-action@v1
7371 with :
74- expected : branch -${{ env.GITHUB_REF_SLUG }}
72+ expected : pull -${{ github.event.number }}
7573 actual : ${{ steps.get-deployment-info.outputs.image_version_tag }}
7674
7775 - name : Check `short_sha`
@@ -95,11 +93,11 @@ jobs:
9593 - name : Check `revision_tag`
9694 uses : nick-fields/assert-action@v1
9795 with :
98- expected : branch -${{ steps.get-deployment-info.outputs.branch_tag_kebab }}
96+ expected : pull -${{ github.event.number }}
9997 actual : ${{ steps.get-deployment-info.outputs.revision_tag }}
10098
10199 - name : Check `revision_tag_slug`
102100 uses : nick-fields/assert-action@v1
103101 with :
104- expected : branch -${{ steps.get-deployment-info.outputs.branch_tag_kebab }}
102+ expected : pull -${{ github.event.number }}
105103 actual : ${{ steps.get-deployment-info.outputs.revision_tag_slug }}
0 commit comments