From 868416fa0208b663c6ae92400333811958a2637c Mon Sep 17 00:00:00 2001 From: Gabriel Padilla <65878291+ggvbo@users.noreply.github.com> Date: Sat, 9 Dec 2023 13:34:59 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20creat?= =?UTF-8?q?e=20generateversiondata.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/generateversiondata.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/generateversiondata.yml diff --git a/.github/workflows/generateversiondata.yml b/.github/workflows/generateversiondata.yml new file mode 100644 index 0000000..602f84a --- /dev/null +++ b/.github/workflows/generateversiondata.yml @@ -0,0 +1,27 @@ +name: 'Generate version data' + +on: + pull_request: + push: + paths-ignore: + - 'version.json' + +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: 'Git: Checkout' + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + - name: "Node: Setup" + uses: actions/setup-node@v3 + with: + node-version: 14.x + - name: 'Node: Generate version data' + id: script + run: yarn build:info + - name: 'Git: Send them back' + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: '📦 auto: generate version.json'