Skip to content

Commit

Permalink
'abhinavminhas/replace-tokens' action version update
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavminhas committed Apr 21, 2024
1 parent 58aea80 commit 13a906d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
vs-version: ${{ matrix.vs-version }}

- name: Find And Replace Values (App Config)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}\GmailAPIHelper.NET.Tests\App.config'
replacements: '__GMAILID__=${{ secrets.GMAIL_ID }}'
Expand All @@ -44,13 +44,13 @@ jobs:
msbuild GmailAPIHelper.sln /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- name: Find And Replace Values (OAuth)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}\GmailAPIHelper.NET.Tests\bin\Release\token.json\Google.Apis.Auth.OAuth2.Responses.TokenResponse-user'
replacements: '__ACCESSTOKEN__=${{ secrets.ACCESS_TOKEN }}'

- name: Find And Replace Values (Client Secret)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}\GmailAPIHelper.NET.Tests\bin\Release\credentials.json'
replacements: '__CLIENTSECRET__=${{ secrets.CLIENT_SECRET }}'
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Find And Replace Values (App Config)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/App.config'
replacements: '__GMAILID__=${{ secrets.GMAIL_ID }}'
Expand All @@ -91,14 +91,14 @@ jobs:

- name: Find And Replace Values (OAuth)
if: ${{ matrix.dotnet-version == 'N/A' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/token.json/Google.Apis.Auth.OAuth2.Responses.TokenResponse-user'
replacements: '__ACCESSTOKEN__=${{ secrets.ACCESS_TOKEN }}'

- name: Find And Replace Values (Client Secret)
if: ${{ matrix.dotnet-version == 'N/A' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/credentials.json'
replacements: '__CLIENTSECRET__=${{ secrets.CLIENT_SECRET }}'
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Find And Replace Values (App Config)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/App.config'
replacements: '__GMAILID__=${{ secrets.GMAIL_ID }}'
Expand All @@ -136,14 +136,14 @@ jobs:

- name: Find And Replace Values (OAuth)
if: ${{ matrix.dotnet-version == '3.1.x' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/token.json/Google.Apis.Auth.OAuth2.Responses.TokenResponse-user'
replacements: '__ACCESSTOKEN__=${{ secrets.ACCESS_TOKEN }}'

- name: Find And Replace Values (Client Secret)
if: ${{ matrix.dotnet-version == '3.1.x' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/credentials.json'
replacements: '__CLIENTSECRET__=${{ secrets.CLIENT_SECRET }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Find And Replace Values (App Config)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/App.config'
replacements: '__GMAILID__=${{ secrets.GMAIL_ID }}'
Expand All @@ -33,14 +33,14 @@ jobs:

- name: Find And Replace Values (OAuth)
if: ${{ matrix.dotnet-version == '3.1.x' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/token.json/Google.Apis.Auth.OAuth2.Responses.TokenResponse-user'
replacements: '__ACCESSTOKEN__=${{ secrets.ACCESS_TOKEN }}'

- name: Find And Replace Values (Client Secret)
if: ${{ matrix.dotnet-version == '3.1.x' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/credentials.json'
replacements: '__CLIENTSECRET__=${{ secrets.CLIENT_SECRET }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/testcleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Find And Replace Values (App Config)
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/App.config'
replacements: '__GMAILID__=${{ secrets.GMAIL_ID }}'
Expand All @@ -37,14 +37,14 @@ jobs:

- name: Find And Replace Values (OAuth)
if: ${{ matrix.dotnet-version == '3.1.x' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/token.json/Google.Apis.Auth.OAuth2.Responses.TokenResponse-user'
replacements: '__ACCESSTOKEN__=${{ secrets.ACCESS_TOKEN }}'

- name: Find And Replace Values (Client Secret)
if: ${{ matrix.dotnet-version == '3.1.x' }}
uses: abhinavminhas/replace-tokens@latest
uses: abhinavminhas/replace-tokens@main
with:
files: '${{ github.workspace }}/GmailAPIHelper.CORE.Tests/bin/Release/netcoreapp3.1/credentials.json'
replacements: '__CLIENTSECRET__=${{ secrets.CLIENT_SECRET }}'
Expand Down

0 comments on commit 13a906d

Please sign in to comment.