entur / gha-docker

GitHub Actions for working with Docker
European Union Public License 1.2
0 stars 1 forks source link

Use correct SHA for feature builds (when pull_request trigger) #85

Closed AlexanderBrevig closed 4 months ago

AlexanderBrevig commented 4 months ago

Probably needs a fix here (maybe checking out HEAD^?)

https://github.com/entur/gha-docker/blob/1d714c9bfe236d7705a304e5a6bab7f897633b97/.github/workflows/push.yml#L73-L77

elg-entur commented 4 months ago

workaround:

      - uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}
Chr1stian commented 4 months ago

Testet ut her: https://github.com/entur/offers/pull/8/commits/afb1f7ca171bb2cb43689b0ecfc93a03d3777de7