32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: Actionlint
|
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
|
|
on:
|
|
push:
|
|
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: slim
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
- name: Verify Action
|
|
run: actionlint -ignore 'unexpected key "description" for "workflow" section' -ignore 'nexpected key "inputs" for "workflow" section.' -ignore 'unexpected key "runs" for "workflow" section.' -ignore '"on" section is missing in workflow' -ignore '"jobs" section is missing in workflow' action.yml
|
|
- name: Verify Workflow
|
|
run: actionlint -ignore 'label "slim" is unknown' .github/workflows/docker-build.yml
|
|
- name: tag latest after success
|
|
if: github.ref == 'refs/heads/main'
|
|
id: tag
|
|
run: |
|
|
git tag -f latest
|
|
git push --tags -f
|
|
|