@@ -520,3 +520,41 @@ jobs:
520520 repo : steadybit/extension-deployer
521521 inputs : ' {"extension":"${{ github.repository }}","version":"${{ needs.build-images.outputs.version }}","revision":"${{ github.sha }}"}'
522522 token : ${{ secrets.PAT_TOKEN_EXTENSION_DEPLOYER }}
523+
524+ check-go-pkg :
525+ name : Trigger test environment updates
526+ if : startsWith(github.ref, 'refs/tags/')
527+ needs : [build-images]
528+ runs-on : ubuntu-latest
529+ timeout-minutes : 60
530+ steps :
531+ - name : Checkout repository
532+ uses : actions/checkout@v4
533+
534+ - name : Set up Go
535+ uses : actions/setup-go@v4
536+ with :
537+ go-version : ' 1.24'
538+
539+ - name : Extract tag from GITHUB_REF
540+ id : get_tag
541+ run : |
542+ # Extract the tag name from the full ref (e.g., refs/tags/v2.1.5 becomes v2.1.5)
543+ tag="${GITHUB_REF##*/}"
544+ echo "tag=$tag" >> $GITHUB_OUTPUT
545+ echo "Using tag: $tag"
546+
547+ - name : Get module name from go.mod
548+ id : get_module
549+ run : |
550+ # Extract the module name from the first line that starts with "module"
551+ module=$(grep '^module ' go.mod | awk '{print $2}')
552+ echo "module=$module" >> $GITHUB_OUTPUT
553+ echo "Module name: $module"
554+
555+ - name : Attempt to download module with go get
556+ run : |
557+ module=${{ steps.get_module.outputs.module }}
558+ tag=${{ steps.get_tag.outputs.tag }}
559+ echo "Running: go get ${module}@${tag}"
560+ go get ${module}@${tag}
0 commit comments