0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed creating release branches

- we didn't clone the repo at the point when we were running a git
  command, so that failed
- switched to a different method of checking out `main` and then
  checking out the most recent tag
This commit is contained in:
Daniel Lockyer 2022-09-06 15:46:49 +01:00
parent e80ab4fc46
commit 914775d55f
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -20,7 +20,7 @@ jobs:
create-branch:
runs-on: ubuntu-latest
steps:
- run: echo "BASE_REF=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- run: echo "BASE_REF=main" >> $GITHUB_ENV
if: inputs.base-ref == 'latest'
- run: echo "BASE_REF=${{ inputs.base-ref }}" >> $GITHUB_ENV
@ -32,6 +32,10 @@ jobs:
fetch-depth: 0
submodules: true
- name: Checkout most recent tag
run: git checkout $(git describe --tags --abbrev=0)
if: inputs.base-ref == 'latest'
- uses: asdf-vm/actions/install@v1
with:
tool_versions: |