This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
chore(template): sync with Kong/template-generic #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Sync the template repository | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
jobs: | |
metadata: | |
runs-on: ubuntu-latest | |
outputs: | |
repository: ${{ steps.metadata.outputs.repository }} | |
dockerfile: ${{ steps.dockerfile.outputs.exists }} | |
steps: | |
- uses: actions/checkout@v3 | |
- id: metadata | |
uses: ahmadnassri/action-metadata@v2 | |
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 }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Queue | |
uses: ahmadnassri/[email protected] | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Sync | |
uses: ahmadnassri/[email protected] | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} |