From 525b23978d168ce9527a7918ed63d1f272376987 Mon Sep 17 00:00:00 2001 From: Jim Segal Date: Sun, 10 Nov 2024 10:17:52 -0600 Subject: [PATCH] [feat]: add Beam community common config (#721) * add beam-community common-config * use repo tool-versions to specify versions --------- Co-authored-by: Sean Callan --- .github/workflows/common-config.yaml | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/common-config.yaml diff --git a/.github/workflows/common-config.yaml b/.github/workflows/common-config.yaml new file mode 100644 index 00000000..99474d05 --- /dev/null +++ b/.github/workflows/common-config.yaml @@ -0,0 +1,52 @@ +# This file is synced with beam-community/common-config. Any changes will be overwritten. + +name: Common Config + +on: + push: + branches: + - main + paths: + - .github/workflows/common-config.yaml + repository_dispatch: + types: + - common-config + schedule: + - cron: "8 12 8 * *" + workflow_dispatch: {} + +concurrency: + group: Common Config + +jobs: + Sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + persist-credentials: true + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: .tool-versions + + - name: Setup Elixir + uses: stordco/actions-elixir/setup@v1 + with: + github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + + - name: Sync + uses: stordco/actions-sync@v1 + with: + commit-message: "chore: sync files with beam-community/common-config" + pr-enabled: true + pr-labels: common-config + pr-title: "chore: sync files with beam-community/common-config" + pr-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + sync-auth: doomspork:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + sync-branch: latest + sync-repository: github.com/beam-community/common-config.git