Update URL Version #18
Workflow file for this run
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
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 |