-
Notifications
You must be signed in to change notification settings - Fork 64
31 lines (26 loc) · 1005 Bytes
/
update_url.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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