Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: moving all.sas logic to another action #359

Merged
merged 5 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .git-hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Ensure lint is passing
LINT=`sasjs lint`
if [[ "$LINT" != *"All matched files use @sasjs/lint code style!" ]]; then
if [[ "$LINT" != *"All matched files use @sasjs/lint code style!" ]]; then
echo "$LINT"
echo "To commit in spite of these warnings, use the -n parameter."
exit 1
Expand Down
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" --allow-empty
git push


Loading