Skip to content

Commit

Permalink
chore: moving all.sas logic to another action
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan committed Oct 17, 2023
1 parent d8ea29b commit 814ecec
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
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
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/notmain.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
python3 build.py
git add all.sas
git commit -m "chore: updating all.sas"
git push

0 comments on commit 814ecec

Please sign in to comment.