ci: update global workflows (#417)
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Autoapproving
|
- name: Autoapproving
|
||||||
uses: hmarr/auto-approve-action@v2
|
uses: hmarr/auto-approve-action@v3
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Automerging
|
- name: Automerging
|
||||||
uses: pascalgn/automerge-action@v0.15.3
|
uses: pascalgn/automerge-action@v0.15.5
|
||||||
env:
|
env:
|
||||||
BASE_BRANCHES: nightly
|
BASE_BRANCHES: nightly
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
@@ -17,6 +17,24 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Find additional files
|
||||||
|
id: find-files
|
||||||
|
run: |
|
||||||
|
# space separated list of files
|
||||||
|
FILES=.clang-format
|
||||||
|
|
||||||
|
# empty placeholder
|
||||||
|
FOUND=""
|
||||||
|
|
||||||
|
for FILE in ${FILES}; do
|
||||||
|
if [ -f "$FILE" ]
|
||||||
|
then
|
||||||
|
FOUND="$FOUND $FILE"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "found=${FOUND}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: yaml lint
|
- name: yaml lint
|
||||||
id: yaml-lint
|
id: yaml-lint
|
||||||
uses: ibiqlik/action-yamllint@v3
|
uses: ibiqlik/action-yamllint@v3
|
||||||
@@ -30,17 +48,14 @@ jobs:
|
|||||||
line-length:
|
line-length:
|
||||||
max: 120
|
max: 120
|
||||||
truthy:
|
truthy:
|
||||||
allowed-values: ['true', 'false', 'on'] # GitHub uses "on" for workflow event triggers
|
# GitHub uses "on" for workflow event triggers
|
||||||
|
# .clang-format file has options of "Yes" "No" that will be caught by this, so changed to "warning"
|
||||||
|
allowed-values: ['true', 'false', 'on']
|
||||||
check-keys: true
|
check-keys: true
|
||||||
level: error
|
level: warning
|
||||||
|
file_or_dir: . ${{ steps.find-files.outputs.found }}
|
||||||
|
|
||||||
- name: Log
|
- name: Log
|
||||||
run: |
|
|
||||||
echo ${{ steps.yaml-lint.outputs.logfile }}
|
|
||||||
|
|
||||||
- name: Upload logs
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
run: |
|
||||||
name: yamllint-logfile
|
cat "${{ steps.yaml-lint.outputs.logfile }}" >> $GITHUB_STEP_SUMMARY
|
||||||
path: ${{ steps.yaml-lint.outputs.logfile }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user