Skip to content

Releases: High-Country-Dev/dotenv-vault-diff-action

Dotenv Vault Diff Action v1

28 Jul 02:12

Choose a tag to compare

Dotenv Vault Diff Action v1.0.0

We're excited to announce the first release of the Dotenv Vault Diff Action! This GitHub Action helps you track changes in your .env.vault file across different environments and provides a summary directly in your pull requests.

Features

  • Automatically detects changes in the .env.vault file when a pull request is opened, reopened, or updated.
  • Identifies which environments (CI, Development, Staging, Production) have been modified.
  • Fetches and displays all versions created for each changed environment during the PR's lifetime.
  • Posts a comment on the pull request with a summary of the changes.
  • Updates the existing comment if the action is run multiple times on the same PR.

How It Works

  1. The action compares the .env.vault file in the PR against the base branch.
  2. It identifies which environments have changed.
  3. For each changed environment, it fetches all versions using dotenv-vault versions.
  4. It compiles this information into a concise summary.
  5. The summary is posted as a comment on the pull request.

Usage

To use this action in your workflow, add the following step:

- name: Dotenv Vault Diff
  uses: high-country-dev/dotenv-vault-diff@v1
  with:
    github-token: ${{ secrets.GITHUB_TOKEN }}
    dotenv-me: ${{ secrets.DOTENV_ME }}

Requirements

  • You need to have dotenv-vault CLI installed in your workflow.
  • The DOTENV_ME secret must be set in your repository secrets.

Feedback and Contributions

We welcome your feedback and contributions! If you encounter any issues or have suggestions for improvements, please open an issue in the repository.

Thank you for using the Dotenv Vault Diff Action. We hope it helps streamline your environment variable management process!