Skip to content

Commit

Permalink
chore: add actionlintl.yml (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato committed Oct 7, 2023
1 parent 9a6cd28 commit 1ac0db4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/actionlintl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: actionlint

on:
pull_request:
branches: [main]
paths:
- ".github/workflows/*"

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: actionlint
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
)
# https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#adding-a-system-path
- name: krew - set PATH
run: echo "${KREW_ROOT:-$HOME/.krew}/bin:$PATH" >> $GITHUB_PATH
run: echo "${KREW_ROOT:-$HOME/.krew}/bin:$PATH" >> "$GITHUB_PATH"

# https://kuttl.dev/docs/cli.html#setup-the-kuttl-kubectl-plugin
- name: kuttl - install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
id: need_commit
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "::set-output name=need_commit::true
echo "need_commit=true" >> "$GITHUB_OUTPUT"
else
echo "::set-output name=need_commit::false
echo "need_commit=false" >> "$GITHUB_OUTPUT"
fi
- name: update date in readme and commit
Expand All @@ -58,7 +58,7 @@ jobs:
if: steps.need_commit.outputs.need_commit == 'true'
id: check_pr
run: |
echo "::set-output name=count::$(gh pr list -S head:${{ env.BRANCH_NAME }} -B ${{ env.BASE_BRANCH_NAME }} | wc -l)"
echo "count=$(gh pr list -S head:${{ env.BRANCH_NAME }} -B ${{ env.BASE_BRANCH_NAME }} | wc -l)" > "$GITHUB_OUTPUT"
- name: create pr
if: ${{ steps.need_commit.outputs.need_commit == 'true' && steps.check_pr.outputs.count == 0 }}
Expand Down

0 comments on commit 1ac0db4

Please sign in to comment.