diff --git a/.github/workflows/test-replace-tokens-action.yml b/.github/workflows/test-replace-tokens-action.yml index 5532a59..549f121 100644 --- a/.github/workflows/test-replace-tokens-action.yml +++ b/.github/workflows/test-replace-tokens-action.yml @@ -1,6 +1,8 @@ name: Test Action (Replace Tokens) on: + pull_request: + branches: [ main ] workflow_dispatch: jobs: @@ -32,19 +34,19 @@ jobs: npm run build --if-present npm test - - name: Replace Tokens ( <<<< Example 1 - Replace a token in a file >>>> ) + - name: Replace Tokens ( <<<< Example 1 - Replace a token in a file. >>>> ) uses: abhinavminhas/replace-tokens@main with: files: ./test/test-files/single_file_replace_single_token.txt replacements: .=? - - name: Replace Tokens ( <<<< Example 2 - Replace multiple tokens in a file >>>> ) + - name: Replace Tokens ( <<<< Example 2 - Replace multiple tokens in a file. >>>> ) uses: abhinavminhas/replace-tokens@main with: files: ./test/test-files/single_file_replace_multiple_different_tokens.txt replacements: Hello=Hi, ....=? - - name: Replace Tokens ( <<<< Example 3 -Replace a token in multiple files >>>> ) + - name: Replace Tokens ( <<<< Example 3 -Replace a token in multiple files. >>>> ) uses: abhinavminhas/replace-tokens@main with: files: | @@ -52,7 +54,7 @@ jobs: ./test/test-files/multiple_files_single_token/file3.yml, ./test/test-files/multiple_files_single_token/file4.txt replacements: 54c213d6-ac7f-44cb-8ac2-91e6a175af3d=18c11372-3b9a-49e1-98d1-6afafc247758 - - name: Replace Tokens ( <<<< Example 4 -Replace multiple tokens in multiple files >>>> ) + - name: Replace Tokens ( <<<< Example 4 -Replace multiple tokens in multiple files. >>>> ) uses: abhinavminhas/replace-tokens@main with: files: | @@ -60,7 +62,7 @@ jobs: ./test/test-files/multiple_files_mutiple_tokens/file3.yml, ./test/test-files/multiple_files_mutiple_tokens/file4.txt replacements: 54c213d6-ac7f-44cb-8ac2-91e6a175af3d=f859e2ad-2c56-40e5-9ead-539095ba6acd, 323acd81-6a1f-4eb8-bc6c-22a7711ab8ba=e10b5211-5fdb-4224-bb81-714bd3759c71 - - name: Replace Tokens ( <<<< Example 5 - Use a different separator than comma >>>> ) + - name: Replace Tokens ( <<<< Example 5 - Use a different separator than comma. >>>> ) uses: abhinavminhas/replace-tokens@main with: files: |