Trigger Release rollback #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is triggered when someone deletes a release from GitHub UI | |
name: Trigger Release rollback | |
on: | |
release: | |
types: [deleted] | |
jobs: | |
on-rollback: | |
runs-on: ubuntu-latest | |
steps: | |
# Providing the SSH PRIVATE of a user part of an admin group | |
# is necessary to bypass PR checks | |
- uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.GH_SSH_PRIVATE_KEY_JAHIACI }} | |
# Setting up the SSH agent to be able to commit back to the repository | |
# https://github.com/webfactory/ssh-agent | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.GH_SSH_PRIVATE_KEY_JAHIACI }} | |
- uses: jahia/jahia-modules-action/release-rollback@v2 | |
name: Release Module | |
with: | |
release_id: ${{ github.event.release.id }} | |
release_version: ${{ github.event.release.tag_name }} | |
mvn_settings_filepath: '.github/maven.settings.xml' |