-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from cap-js/actions-for-test
Actions to update CDS test branch
- Loading branch information
Showing
5 changed files
with
49 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Create CDS Test branch | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build and Push | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Copy xmpls | ||
run: npm run add-all-xmpls | ||
|
||
- name: Test | ||
run: | | ||
npm i | ||
npm test | ||
- name: Extract last commit author email and name | ||
id: extract_commit_info | ||
run: | | ||
LAST_COMMIT_EMAIL=$(git log -1 --pretty=format:'%ae') | ||
LAST_COMMIT_NAME=$(git log -1 --pretty=format:'%an') | ||
echo "AUTHOR_EMAIL=$LAST_COMMIT_EMAIL" >> $GITHUB_ENV | ||
echo "AUTHOR_NAME=$LAST_COMMIT_NAME" >> $GITHUB_ENV | ||
- name: Push | ||
run: | | ||
git config --global user.email "${{ env.AUTHOR_EMAIL }}" | ||
git config --global user.name "${{ env.AUTHOR_NAME }}" | ||
# Add and commit changes locally | ||
git add . | ||
git commit -m "${{ github.event.head_commit.message }}" | ||
git push --force-with-lease origin HEAD:cds-test-integrate |
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
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
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
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