Skip to content

Commit

Permalink
fix(ci): need a metadata github actions job
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Jan 4, 2022
1 parent a8a2799 commit 813d0f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@ on: # yamllint disable-line rule:truthy
- main

jobs:
metadata:
runs-on: ubuntu-latest

outputs:
repository: ${{ steps.metadata.outputs.repository }}
dockerfile: ${{ steps.dockerfile.outputs.exists }}

steps:
- uses: actions/[email protected]

- id: metadata
uses: ahmadnassri/action-metadata@v1

sync:

needs:
- metadata

# only runs on main branch and only for the template
if: ${{ github.ref == 'refs/heads/main' && fromJSON(needs.metadata.outputs.repository).is_template }}

Expand Down

0 comments on commit 813d0f6

Please sign in to comment.