Skip to content

Conversation

@gjtorikian
Copy link
Contributor

No description provided.

@greptile-apps
Copy link

greptile-apps bot commented Jan 21, 2026

Greptile Summary

Adds two GitHub Actions workflows to automate version management and releases for the WorkOS Elixir SDK. The version-bump.yml workflow allows manual triggering to bump patch/minor/major versions and create PRs, while the release.yml workflow automatically creates GitHub releases and publishes to Hex.pm when version-bump PRs are merged.

  • Version Bump Workflow: Manually triggered workflow that reads current version from mix.exs, calculates new version based on semver bump type, updates the file, and creates a PR with the version-bump label
  • Release Workflow: Triggered when PRs with version-bump label are merged to main. Creates a GitHub release with auto-generated notes and publishes the package to Hex.pm
  • Both workflows use GitHub App tokens for authentication instead of personal access tokens
  • The release workflow properly sequences jobs: GitHub release creation must complete before Hex publishing begins

The workflows are well-structured with proper permissions, use pinned action versions for security, and integrate cleanly with the existing CI workflow.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The workflows follow GitHub Actions best practices with pinned action versions, appropriate permission scopes, proper token handling, and clear job dependencies. The version parsing logic correctly matches the existing format in mix.exs. No security concerns with secrets handling.
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/release.yml Adds workflow to create GitHub release and publish to Hex when version-bump PRs are merged. Uses proper token handling and job dependencies.
.github/workflows/version-bump.yml Adds workflow to automate version bumps via manual trigger. Uses bash arithmetic and sed for version updates, creates PR with version-bump label.

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant VB as Version Bump Workflow
    participant PR as Pull Request
    participant RL as Release Workflow
    participant GH as GitHub Release
    participant Hex as Hex.pm

    Dev->>VB: Trigger workflow_dispatch<br/>(select patch/minor/major)
    VB->>VB: Read current version from mix.exs
    VB->>VB: Calculate new version
    VB->>VB: Update @version in mix.exs
    VB->>PR: Create PR with version-bump label
    
    Dev->>PR: Review and merge PR
    PR->>RL: Trigger on PR close (merged + version-bump label)
    RL->>RL: Extract version from mix.exs
    RL->>GH: Create GitHub release with tag
    RL->>RL: Setup Elixir/Erlang
    RL->>RL: Install dependencies
    RL->>Hex: Publish package with HEX_API_KEY
Loading

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@gjtorikian gjtorikian merged commit 0809b91 into main Jan 22, 2026
4 checks passed
@gjtorikian gjtorikian deleted the automate-workflows branch January 22, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants