Skip to content

Commit

Permalink
chore(template): sync with hutchic/template-template
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Apr 9, 2022
1 parent 996c1ec commit 671c49b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on: # yamllint disable-line rule:truthy

jobs:
lint-pr-title:
name: Validate PR title
name: Validate PR titles
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
name: Sync the template repository

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main
branches: main

jobs:
metadata:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2.3.5

- id: metadata
uses: ahmadnassri/action-metadata@v1
Expand All @@ -26,15 +27,15 @@ jobs:
- metadata

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

runs-on: ubuntu-latest

steps:
- name: Queue
uses: ahmadnassri/action-workflow-queue@v1.1
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Sync
uses: ahmadnassri/action-template-repository-sync@v1.6.0
with:
Expand Down

0 comments on commit 671c49b

Please sign in to comment.