Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore: updated rename migration action to run on PR merge
Akhil Mohanb5fd7698d8e0
diff --git a/.github/workflows/update-be-new-migration-latest-timestamp.yml b/.github/workflows/update-be-new-migration-latest-timestamp.ymlindex 03dbd1177d..7fc6ae6de7 100644--- a/.github/workflows/update-be-new-migration-latest-timestamp.yml+++ b/.github/workflows/update-be-new-migration-latest-timestamp.yml@@ -2,27 +2,19 @@ name: Rename Migrationson:pull_request:+ types:+ - closedpaths:- 'backend/src/db/migrations/**'jobs:rename:runs-on: ubuntu-latest+ if: github.event.pull_request.merged == truesteps:- name: Check out repositoryuses: actions/checkout@v2- - name: Install GH CLI - Local Testing Using Nektos Act- if: ${{ env.ACT }}- run: |- sudo apt update- sudo apt install gh-- - name: Checkout PR- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: gh pr checkout ${{ github.event.pull_request.number }}-- name: Get list of newly added files in migration folderrun: git diff --name-status HEAD^ HEAD backend/src/db/migrations | grep '^A' | cut -f2 | xargs -n1 basename > added_files.txt@@ -35,5 +27,10 @@ jobs:git config user.email [email protected]git add ./backend/src/db/migrationsgit commit -m "chore: renamed new migration files to latest timestamp (gh-action)"- git push++ - name: Push changes+ env:+ TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}+ run: |+ git push https://$GITHUB_ACTOR:[email protected]/${{ github.repository }}.git HEAD:main