Skip to content

Commit

Permalink
fix: update action template
Browse files Browse the repository at this point in the history
Signed-off-by: jerensl <[email protected]>
  • Loading branch information
jerensl committed Nov 4, 2024
1 parent ca6f5fc commit 5e19f8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/update-action-template.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Update MeshMap Snapshot template
name: Update Kanvas Snapshot template
on:
release:
types: [released]

jobs:
update-action-template:
name: MeshMap Snapshot Template update
name: Kanvas Snapshot Template update
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') == true
steps:
- name: Checkout meshmap-snapshot code
- name: Checkout kanvas-snapshot code
uses: actions/checkout@v4
with:
repository: layer5labs/meshmap-snapshot
repository: layer5labs/kanvas-snapshot
fetch-depth: 1
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Update templates
uses: fjogeleit/yaml-update-action@main
with:
repository: layer5labs/meshmap-snapshot
repository: layer5labs/kanvas-snapshot
branch: master
token: ${{ secrets.GH_ACCESS_TOKEN }}
commitChange: true
Expand All @@ -28,9 +28,9 @@ jobs:
changes: |
{
"workflow-templates/file-uploadTemplate.yaml": {
"jobs.MeshMapScreenshot.steps[3].uses": "${GITHUB_REF/refs\/tags\//}"
"jobs.KanvasScreenshot.steps[3].uses": "layer5labs/kanvas-snapshot@${{github.event.release.tag_name}}"
},
"workflow-templates/url-uploadTemplate.yaml": {
"jobs.MeshMapScreenshot.steps[3].uses": "${GITHUB_REF/refs\/tags\//}"
"jobs.KanvasScreenshot.steps[3].uses": "layer5labs/kanvas-snapshot@${{github.event.release.tag_name}}"
}
}

0 comments on commit 5e19f8f

Please sign in to comment.