Skip to content

Commit

Permalink
Merge pull request #87 from MUzairS15/MUzairS15/chore
Browse files Browse the repository at this point in the history
add workflow to update templates on release
  • Loading branch information
leecalcote authored Feb 15, 2024
2 parents 4b177aa + c60fff7 commit 73dd6ab
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/update-action-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update MeshMap Snapshot template
on:
release:
types: [released]

jobs:
update-action-template:
name: MeshMap Snapshot Template update
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') == true
steps:
- name: Checkout meshmap-snapshot code
uses: actions/checkout@v4
with:
repository: layer5labs/meshmap-snapshot
fetch-depth: 1
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Update templates
uses: fjogeleit/yaml-update-action@main
with:
repository: layer5labs/meshmap-snapshot
branch: master
token: ${{ secrets.GH_ACCESS_TOKEN }}
commitChange: true
message: Updated meshery-cloud version to ${{inputs.release-version}}
commitUserName: l5io
commitUserEmail: [email protected]
changes: |
{
"workflow-templates/file-uploadTemplate.yaml": {
"jobs.MeshMapScreenshot.steps[3].uses": "${GITHUB_REF/refs\/tags\//}"
},
"workflow-templates/url-uploadTemplate.yaml": {
"jobs.MeshMapScreenshot.steps[3].uses": "${GITHUB_REF/refs\/tags\//}"
}
}

0 comments on commit 73dd6ab

Please sign in to comment.