Skip to content

Update go.mod and go.sum to latest version from networkservicemesh/cm… #12783

Update go.mod and go.sum to latest version from networkservicemesh/cm…

Update go.mod and go.sum to latest version from networkservicemesh/cm… #12783

Workflow file for this run

---
name: Update references
on:
push:
branches:
- main
workflow_run:
types:
- completed
workflows:
- 'automerge'
jobs:
update-refs:
name: Update references
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push' }}
steps:
- name: Check out the code
uses: actions/checkout@v2
with:
ref: main
- name: Update references
run: |
sed -r -i '/github.com\/networkservicemesh\/deployments-k8s/ s/(\?ref=[a-z0-9.]*)/\?ref='"$GITHUB_SHA"'/g' `grep '?ref=' -rl *`
sed -r -i '/raw.githubusercontent.com\/networkservicemesh\/deployments-k8s/ s/(deployments-k8s\/[a-z0-9.]*)/deployments-k8s\/'"$GITHUB_SHA"'/g' `grep 'raw.githubusercontent.com' -rl *`
git config --global user.email "nsmbot@networkservicmesh.io"
git config --global user.name "NSMBot"
git add -- .
git commit -s -m "Update references"
git push