Skip to content

Commit

Permalink
fix(syntax): fighting github actions syntax it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Jan 3, 2022
1 parent db2acb5 commit cc7c0e2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
---
on: [push, pull_request, workflow_dispatch] # yamllint disable-line rule:truthy
name: Sync the template repository

jobs:
template-sync:
timeout-minutes: 20
on: # yamllint disable-line rule:truthy
push:
branches:
- main

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

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: ahmadnassri/[email protected]
- name: Checkout
uses: actions/checkout@v2
- name: Sync
uses: ahmadnassri/[email protected]
with:
github-token: ${{ secrets.GH_TOKEN }}
dry-run: true

0 comments on commit cc7c0e2

Please sign in to comment.