Update go.mod and go.sum to latest version from networkservicemesh/cm… #15907
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
--- | |
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 |