From 814ecec94fb75d0b6959985d392c24259740e5be Mon Sep 17 00:00:00 2001 From: Allan Date: Tue, 17 Oct 2023 16:05:32 +0100 Subject: [PATCH] chore: moving all.sas logic to another action --- .github/workflows/main.yml | 10 ---------- .github/workflows/notmain.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/notmain.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e6190af..e9417558 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,20 +18,10 @@ jobs: - name: Install dependencies run: | npm ci - npm i -g @sasjs/cli@latest - name: Check code style (aborts if errors found) run: npx @sasjs/cli lint - - name: Ensure all.sas is always up to date - run: | - git config user.name github-actions - git config user.email github-actions@github.com - python3 build.py - git add all.sas - git commit -m "chore: updating all.sas" - git push - - name: Write VPN Files run: | echo "$CA_CRT" > .github/vpn/ca.crt diff --git a/.github/workflows/notmain.yml b/.github/workflows/notmain.yml new file mode 100644 index 00000000..bdbbcd1d --- /dev/null +++ b/.github/workflows/notmain.yml @@ -0,0 +1,32 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: SASjs Core - Update all.sas + +on: + push: + branches-ignore: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + npm ci + npm i -g @sasjs/cli@latest + + - name: Ensure all.sas is always up to date + run: | + git config user.name github-actions + git config user.email github-actions@github.com + python3 build.py + git add all.sas + git commit -m "chore: updating all.sas" + git push + +