-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap git commit yarn.lock in conditional. Final test
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 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 |
---|---|---|
|
@@ -24,16 +24,20 @@ jobs: | |
token: ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }} | ||
- name: Set git credentials and regenerate yarn.lock | ||
run: | | ||
git status | ||
git config --global user.name 'VA Automation Bot' | ||
git config --global user.email '[email protected]' | ||
yarn && yarn tokens:build | ||
cd ../.. | ||
git add yarn.lock | ||
git commit -m 'Regenerate yarn.lock' | ||
git push | ||
- name: Compare tokens | ||
yarn install | ||
if git status --porcelain | grep -q '^[ MARC].*yarn.lock'; then | ||
echo "yarn.lock has unstaged changes." | ||
cd ../.. | ||
git add yarn.lock | ||
git commit -m 'Regenerate yarn.lock' | ||
git push | ||
fi | ||
- name: Build and compare tokens | ||
run: | | ||
yarn tokens:build | ||
cd dist/js | ||
cp colors.js colors_new.js | ||
git checkout main | ||
|
@@ -60,7 +64,7 @@ jobs: | |
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Dependabot found an update to *@department-of-veterans-affairs/css-library*" | ||
"text": "*TEST* Dependabot found an update to *@department-of-veterans-affairs/css-library*" | ||
} | ||
}, | ||
{ | ||
|