diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml new file mode 100644 index 0000000..dfe01ac --- /dev/null +++ b/.github/workflows/sync-template.yml @@ -0,0 +1,24 @@ +name: Sync Template +'on': + workflow_dispatch: null +jobs: + repo-sync: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Check if repository is a template + id: is_template + run: | + IS_TEMPLATE=$(gh repo view --json isTemplate --jq '.isTemplate') + echo "is_template=$IS_TEMPLATE" >> $GITHUB_OUTPUT + - name: actions-template-sync + if: steps.is_template.outputs.is_template == 'false' + uses: AndreasAugustin/actions-template-sync@v2 + with: + source_repo_path: ukwhatn/application-template + upstream_branch: develop + pr_labels: automated pr, sync-template \ No newline at end of file diff --git a/.github/workflows/update-pr-labels.yml b/.github/workflows/update-pr-labels.yml index a5ba159..2d99491 100644 --- a/.github/workflows/update-pr-labels.yml +++ b/.github/workflows/update-pr-labels.yml @@ -1,14 +1,14 @@ name: Update labels - -on: pull_request +on: + workflow_dispatch: jobs: build: name: Sync labels runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: micnncim/action-label-syncer@v0.3.1 + - uses: actions/checkout@v4 + - uses: micnncim/action-label-syncer@v1.3.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - manifest: .github/labels.yml + manifest: .github/labels.yml \ No newline at end of file diff --git a/db/package/db b/db/package/db deleted file mode 120000 index d89d37d..0000000 --- a/db/package/db +++ /dev/null @@ -1 +0,0 @@ -../db \ No newline at end of file