-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from MUzairS15/MUzairS15/chore
add workflow to update templates on release
- Loading branch information
Showing
1 changed file
with
36 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,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\//}" | ||
} | ||
} |