Skip to content

Commit

Permalink
Merge pull request #11 from abhinavminhas/dev
Browse files Browse the repository at this point in the history
Test action update
  • Loading branch information
abhinavminhas authored Jul 18, 2023

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
2 parents a8ebc36 + 00da2a7 commit 710e339
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-replace-tokens-action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test Action (Replace Tokens)

on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
@@ -32,35 +34,35 @@ 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: |
./test/test-files/multiple_files_single_token/file1.json, ./test/test-files/multiple_files_single_token/file2.csv,
./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: |
./test/test-files/multiple_files_mutiple_tokens/file1.json, ./test/test-files/multiple_files_mutiple_tokens/file2.csv,
./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: |

0 comments on commit 710e339

Please sign in to comment.