chore: enable aof timestamp #974
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Shell Check | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
tags-ignore: | |
- '*' | |
env: | |
BASE_BRANCH: origin/release-0.9 | |
jobs: | |
shell-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
if: ${{ github.ref_name != 'main' }} | |
uses: styfle/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
all_but_latest: true | |
access_token: ${{ env.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get base commit id | |
id: get_base_commit_id | |
env: | |
REF_NAME: ${{ github.ref_name }} | |
run: | | |
BASE_COMMITID=`bash .github/utils/utils.sh --type 1 \ | |
--branch-name "${{ env.REF_NAME }}" \ | |
--base-branch "${{ env.BASE_BRANCH }}"` | |
echo "BASE_COMMITID:$BASE_COMMITID" | |
echo BASE_COMMITID=$BASE_COMMITID >> $GITHUB_ENV | |
- name: Get file path | |
id: get_file_path | |
run: | | |
FILE_PATH=`git diff --name-only HEAD ${{ env.BASE_COMMITID }}` | |
echo "FILE_PATH: $FILE_PATH" | |
SHELL_FILE_PATH="" | |
for filePath in $(echo "$FILE_PATH"); do | |
if [[ "${filePath}" == *".sh" ]]; then | |
SHELL_FILE_PATH="${SHELL_FILE_PATH} ${filePath}" | |
fi | |
done | |
echo shell_file_path=$SHELL_FILE_PATH >> $GITHUB_OUTPUT | |
- name: Check scripts with Shellcheck | |
uses: essentialkaos/shellcheck-action@v1 | |
if: ${{ steps.get_file_path.outputs.shell_file_path }} | |
with: | |
files: ${{ steps.get_file_path.outputs.shell_file_path }} | |
severity: error | |
format: tty |