From 49266a146e1662290b242a21bde20f7fe5d73295 Mon Sep 17 00:00:00 2001 From: tree Date: Thu, 25 Jan 2024 22:42:07 +0100 Subject: [PATCH] add sync workflow --- .github/workflows/sync.yml | 27 +++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..0be330e --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,27 @@ +name: Synchronize data + +on: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v3 + + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run synchronization script + run: npm run sync-all + + - uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions \ No newline at end of file diff --git a/package.json b/package.json index 3365c2c..5904444 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "articles": "deno run --allow-all utils/articles.js", "talks": "deno run --allow-all utils/talks.js", "explorer": "deno run --allow-all utils/explorer.js", - "all": "npm run core && npm run contribs && npm run articles && npm run talks && npm run explorer" + "sync-all": "npm run core && npm run contribs && npm run articles && npm run talks && npm run explorer" }, "dependencies": { "@astrojs/tailwind": "^5.0.2",