Files
docker-build-action/.github/workflows/lint.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: unmarshal errors: line 23: mapping key "name" already defined at line 21 line 24: mapping key "run" already defined at line 22

32 lines
1007 B
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- 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 Action
run: actionlint .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