Upgrade rainstormy/presets-lefthook
to 1.1.0 - autoclosed
#76
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 creates a Git tag for the release commit on the `main` branch. | |
# | |
# It is triggered automatically by merging a pull request from a branch with a `release/` prefix, as created by the `release.yml` workflow. | |
name: Release / Tag | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- closed | |
# Cancel all previous runs of this workflow that are still in progress on the same branch. | |
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency | |
concurrency: | |
group: release-tag-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
# All third-party actions are pinned to a specific commit SHA for security reasons. | |
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions | |
jobs: | |
tag: | |
name: Tag | |
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 1 | |
permissions: { } | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
# Use a separate access token to allow the push tag event in this workflow to trigger the subsequent `release-github.yml` and `release-npm.yml` workflows. | |
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow | |
token: ${{ secrets.BOT_NIMBUS_GH_AUTH_TOKEN }} | |
# | |
- name: Use Nimbus (Bot) in Git | |
uses: rainstormy/rainstorm-release/bot-nimbus@5aa67a14e95403e7db0a7a43f8e18c1cdd51ba5f # v1.0.0 | |
with: | |
bot-nimbus-ssh-public-key: ${{ secrets.BOT_NIMBUS_SSH_PUBLIC_KEY }} | |
__bot-nimbus-ssh-private-key__: ${{ secrets.BOT_NIMBUS_SSH___THE___PRIVATE___KEY }} | |
ssh-key-fingerprints-github: ${{ secrets.SSH_KEY_FINGERPRINTS_GITHUB }} | |
# | |
- name: Create a semantic version tag in Git | |
uses: rainstormy/release/tag@73fe3aae49ad74af650e529107d94f45002798fd # v1.1.0 | |
with: | |
version: ${{ github.head_ref }} |