Skip to content

Commit

Permalink
ci: optimize the deprecated action command
Browse files Browse the repository at this point in the history
  • Loading branch information
FushuWang committed Jul 21, 2023
1 parent 6484335 commit 5b143ce
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/chart_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
Expand Down Expand Up @@ -115,8 +115,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Create kind cluster
Expand Down Expand Up @@ -190,8 +190,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Create kind cluster
Expand Down Expand Up @@ -265,8 +265,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Create kind cluster
Expand Down Expand Up @@ -338,8 +338,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Create kind cluster
Expand Down Expand Up @@ -412,8 +412,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Create kind cluster
Expand Down Expand Up @@ -486,8 +486,8 @@ jobs:
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
chart_name=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml | grep -v '>>>')
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "::set-output name=chart_name::$chart_name"
echo "changed=true" >> $GITHUB_OUTPUT
echo "chart_name=$chart_name" >> $GITHUB_OUTPUT
fi
- name: Create kind cluster
Expand Down

0 comments on commit 5b143ce

Please sign in to comment.