-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: restoring workflow git tweaks
- Loading branch information
1 parent
7ee3f14
commit de5a548
Showing
1 changed file
with
1 addition
and
7 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 |
---|---|---|
|
@@ -6,8 +6,6 @@ on: | |
jobs: | ||
check-python: | ||
runs-on: 'ubuntu-latest' | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
@@ -39,13 +37,9 @@ jobs: | |
- name: Configure git | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
# set git user and email as test invoke git | ||
git config --global user.email "[email protected]" && git config --global user.name "x-access-token" | ||
# set up git credentials to allow pushing dummy commits | ||
git config --global credential.helper '!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f' | ||
git config --global user.email "[email protected]" && git config --global user.name "github-actions" | ||
- name: Run tests | ||
shell: bash | ||
|