Skip to content

Commit

Permalink
GitHub: Improve create-release.yaml. (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko authored Jul 17, 2024
1 parent 9158aeb commit b4f048a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
env:
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}"
run: |
for provider_dir in capa/* azure/*; do
for provider_dir in capa/v* azure/v*; do
provider=""
if [[ $provider_dir == capa/* ]]; then
provider="aws"
elif [[ $provider_dir == azure/* ]]; then
provider="azure"
fi
if [[ -f $provider_dir || -z $provider ]]; then
if [[ ! -f $provider_dir/release.yaml || -z $provider ]]; then
echo "Skipping file or unknown provider $provider_dir"
continue
fi
Expand Down Expand Up @@ -55,14 +55,14 @@ jobs:
- name: Create new release tag
run: |
git fetch --tags
for provider_dir in capa/* capz/*; do
for provider_dir in capa/v* azure/v*; do
provider=""
if [[ $provider_dir == capa/* ]]; then
provider="aws"
elif [[ $provider_dir == azure/* ]]; then
provider="azure"
fi
if [[ -f $provider_dir || -z $provider ]]; then
if [[ ! -f $provider_dir/release.yaml || -z $provider ]]; then
echo "Skipping file or unknown provider $provider_dir"
continue
fi
Expand All @@ -82,14 +82,14 @@ jobs:
env:
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}"
run: |
for provider_dir in capa/* azure/*; do
for provider_dir in capa/v* azure/v*; do
provider=""
if [[ $provider_dir == capa/* ]]; then
provider="aws"
elif [[ $provider_dir == azure/* ]]; then
provider="azure"
fi
if [[ -f $provider_dir || -z $provider ]]; then
if [[ ! -f $provider_dir/release.yaml || -z $provider ]]; then
echo "Skipping file or unknown provider $provider_dir"
continue
fi
Expand Down

0 comments on commit b4f048a

Please sign in to comment.