Skip to content

Commit

Permalink
POC-634: Create GitHub Action (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelegor authored Apr 4, 2024
1 parent a50e4b8 commit 92316d3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update_url.yml
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

0 comments on commit 92316d3

Please sign in to comment.