Skip to content

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

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

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

Workflow file for this run

---
name: Update references
on:
push:
branches:
- main
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 "[email protected]"
git config --global user.name "nsmbot"
git add -- .
git commit -s -m "Update references"
git push