CI: Update v2 branch CI to be on par with v3 (#286)

* ci: Update CI to be on par with v3

* ci: Update gosop branch for GopenPGP-v2
This commit is contained in:
Lukas Burkhalter 2024-08-27 13:15:12 +02:00 committed by GitHub
parent 2a07a34fb8
commit 4e8fad59d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 54 additions and 47 deletions

View file

@ -2,7 +2,6 @@ name: 'build-gosop'
description: 'Build gosop from the current branch'
inputs:
gopenpgp-ref:
description: 'gopenpgp branch tag or commit to build from'
required: true
@ -21,6 +20,12 @@ runs:
with:
ref: ${{ inputs.gopenpgp-ref }}
path: gopenpgp
- name: Set env
run: echo "GOSOP_BRANCH_REF=$(./.github/test-suite/determine_gosop_branch.sh)" >> $GITHUB_ENV
shell: bash
- name: Print gosop branch
run: echo ${{ env.GOSOP_BRANCH_REF}}
shell: bash
# Build gosop
- name: Set up latest golang
uses: actions/setup-go@v3
@ -30,6 +35,7 @@ runs:
uses: actions/checkout@v3
with:
repository: ProtonMail/gosop
ref: ${{ env.GOSOP_BRANCH_REF}}
path: gosop
- name: Cache go modules
uses: actions/cache@v3