This GitHub Action checks for changes in the .env.vault file and comments on pull requests with the latest versions of changed environments.
- Detects changes in the
.env.vaultfile - Comments on PRs with the latest versions of changed environments
- Updates existing comments if rerun
Add the following step to your workflow:
- name: Dotenv Vault Diff
uses: high-country-dev/dotenv-vault-diff-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
dotenv-me: ${{ secrets.DOTENV_ME }}github-token: The GitHub token used to create/update comments (required)dotenv-me: Your DOTENV_ME secret for authentication with dotenv-vault (required)
- Install dependencies:
npm install - Build the action:
npm run build
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
PR_NUMBER=13 GITHUB_REPOSITORY="High-Country-Dev/farmers" GITHUB_BASE_REF=dev DOTENV_ME=me_x GITHUB_TOKEN=ghp_x node ../dotenv-vault-diff/dist/index.js