-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC-634: Create GitHub Action (#400)
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Update URL Version | ||
|
||
on: create | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
jobs: | ||
build: | ||
name: Update URL Version for Release Branches | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/heads/release/') | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ssh-key: ${{secrets.ID_GITHUB_ACTIONS}} | ||
|
||
- name: Update pas-single-component-deploy.json | ||
uses: restackio/[email protected] | ||
with: | ||
file: azure/pas-single-component-deploy.json | ||
fields: "{\"resources[0].properties.templateLink.uri\": \"https://raw.githubusercontent.com/cyberark/pas-on-cloud/${{github.ref_name}}/azure/nested/psmp-nested-template.json\"}" | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add azure/pas-single-component-deploy.json | ||
git commit -m "GitHub Action: Update psmp nested template url" | ||
git push |