Skip to content

Commit

Permalink
::migrate:: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed May 1, 2024
1 parent 61c0266 commit cf46142
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ permissions:

jobs:
migrate:
# This workflow is triggered only on pushes to the `main`, `*.staging` or 'migrate' branches.
# For `*.staging` and `migrate` it specifically checks if the commit message starts with `::migrate::`,
# indicating a migration-related change.
#
# Example usage:
# Execute a commit with a migration flag using:
# git commit --allow-empty -m "::migrate::test description"
# Note:
# This setup is a temporary measure. The intention is to transition to a fully automated publish and release process via GitHub Actions in the future.
if: (github.ref_name == 'main') || ((github.ref_name == 'migrate' || endsWith(github.ref_name, '.staging')) && startsWith(github.event.head_commit.message, '::migrate::'))

runs-on: ubuntu-latest
Expand Down

0 comments on commit cf46142

Please sign in to comment.