-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: moving all.sas logic to another action
- Loading branch information
Allan
committed
Oct 17, 2023
1 parent
d8ea29b
commit 814ecec
Showing
2 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||