Skip to content

Commit

Permalink
fix release.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin committed Nov 28, 2023
1 parent 173181e commit cc85c95
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,38 +52,38 @@ jobs:
docker pull $image
done
replace-params:
name: Replacing release specific parameters
needs: [get-tag, check-images]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.ref }}
- name: Git config
run: |
git config --global user.email "[email protected]"
git config --global user.name "NSMBot"
- name: Replace logging level with INFO
run: |
sed -r -i '/name: NSM_LOG_LEVEL/{ n; s/value: .*/value: INFO/g }' `grep 'NSM_LOG_LEVEL' -rl *`
sed -r -i 's/NSM_LOG_LEVEL: .*/NSM_LOG_LEVEL: INFO/g' `grep 'NSM_LOG_LEVEL' -rl *`
sed -r -i 's/NSM_LOG_LEVEL=TRACE/NSM_LOG_LEVEL=INFO/g' `grep 'NSM_LOG_LEVEL' -rl *`
git add -- .
git commit -s -m "Replace logging level with INFO"
- name: Update references to the latest tag
run: |
sed -r -i '/github.com\/networkservicemesh\/deployments-k8s/ s/(\?ref=[a-z0-9.]*)/\?ref='"${{ needs.get-tag.outputs.tag }}"'/g' `grep '?ref=' -rl *`
sed -r -i '/raw.githubusercontent.com\/networkservicemesh\/deployments-k8s/ s/(deployments-k8s\/[a-z0-9.]*)/deployments-k8s\/'"${{ needs.get-tag.outputs.tag }}"'/g' `grep 'raw.githubusercontent.com' -rl *`
git add -- .
git commit -s -m "Update references to the latest tag"
ref=${{ github.event.ref }}
git push origin ${ref#refs/heads/}
# replace-params:
# name: Replacing release specific parameters
# needs: [get-tag, check-images]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# with:
# ref: ${{ github.event.ref }}
# - name: Git config
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "NSMBot"
# - name: Replace logging level with INFO
# run: |
# sed -r -i '/name: NSM_LOG_LEVEL/{ n; s/value: .*/value: INFO/g }' `grep 'NSM_LOG_LEVEL' -rl *`
# sed -r -i 's/NSM_LOG_LEVEL: .*/NSM_LOG_LEVEL: INFO/g' `grep 'NSM_LOG_LEVEL' -rl *`
# sed -r -i 's/NSM_LOG_LEVEL=TRACE/NSM_LOG_LEVEL=INFO/g' `grep 'NSM_LOG_LEVEL' -rl *`
# git add -- .
# git commit -s -m "Replace logging level with INFO"
# - name: Update references to the latest tag
# run: |
# sed -r -i '/github.com\/networkservicemesh\/deployments-k8s/ s/(\?ref=[a-z0-9.]*)/\?ref='"${{ needs.get-tag.outputs.tag }}"'/g' `grep '?ref=' -rl *`
# sed -r -i '/raw.githubusercontent.com\/networkservicemesh\/deployments-k8s/ s/(deployments-k8s\/[a-z0-9.]*)/deployments-k8s\/'"${{ needs.get-tag.outputs.tag }}"'/g' `grep 'raw.githubusercontent.com' -rl *`
# git add -- .
# git commit -s -m "Update references to the latest tag"
# ref=${{ github.event.ref }}
# git push origin ${ref#refs/heads/}

create-release:
name: Create release
needs: [get-tag, replace-params]
needs: [get-tag, check-images]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit cc85c95

Please sign in to comment.