Skip to content

Commit

Permalink
BACKLOG-21969 - Add missing git steps (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
rknj authored Dec 7, 2023
1 parent ad7caa6 commit c31417f
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,34 @@ jobs:
with:
ssh-private-key: ${{ secrets.GH_SSH_PRIVATE_KEY_JAHIACI }}

- name: Setup git
- name: Getting latest changes from the remote branch
shell: bash
run: |
git config user.email 'jahia-ci@jahia.com'
git config user.name 'Jahia CI'
git fetch --all
git pull origin ${{ inputs.primary_release_branch }} --quiet
- name: Delete github tag ${{ inputs.release_version }}
shell: bash
run: |
git config user.email ${{ inputs.git_user_email }}
git config user.name ${{ inputs.git_user_name }}
git tag --delete ${{ inputs.release_version }}
git push origin :refs/tags/${{ inputs.release_version }}
- name: Remove any previous changes, this is required by mvn release prepare
shell: bash
run: |
git reset --hard
git checkout ${{ inputs.primary_release_branch }}
- name: Added some debug details
shell: bash
run: |
git branch
echo "---"
git status
echo "---"
git show --summary
- name: Set environment variables from parameters
shell: bash
Expand Down

0 comments on commit c31417f

Please sign in to comment.