Skip to content

Commit

Permalink
use envs everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Apr 19, 2024
1 parent 056cc84 commit 34c1526
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-release-branches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
# release/networkservicemesh/cmd-*/${tag} branches into release/${tag} branch.
- name: Check release branches
run: |
images=$(grep -roh 'apps' -e "ghcr\.io\/networkservicemesh\/ci\/.*" | cut -d'/' -f4 | cut -d':' -f1 | sort -u)
branches=$(git branch -r | grep -e "release/networkservicemesh/.*/${{ env.tag }}" | cut -d'/' -f4 | sort -u)
images=$(grep -roh 'apps' -e "ghcr\.io\/networkservicemesh\/ci\/.*" | cut -d'/' -f4 | cut -d':' -f1 | sort -u)
branches=$(echo ${{ env.branches }} | tr ' ' '\n' | cut -d'/' -f4 | sort -u)
diff <(echo "$branches") <(echo "$images")
- name: Merge branches
Expand All @@ -44,7 +44,7 @@ jobs:
git config --global user.name "NSMBot"
git checkout -b release/${{ env.tag }}
for branch in ${{ env.branches }; do
for branch in ${{ env.branches }}; do
git merge $branch
done
Expand All @@ -53,7 +53,7 @@ jobs:
# After merging all release branches we remove them from remote deployments-k8s
- name: Remove release branches
run: |
for branch in ${{ env.branches }; do
for branch in ${{ env.branches }}; do
branch=${branch#"origin/"}
gh api \
--method DELETE \
Expand Down

0 comments on commit 34c1526

Please sign in to comment.