-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Add autoDIR Action #1546
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
Add autoDIR Action #1546
Changes from all commits
ae791f0
ae675f0
32f1435
670f700
8c6574f
cc55035
5f12b5f
59145de
17d19d7
abbf642
22a12c9
654c99f
c463129
3ec0c04
6391d72
b5f7305
916970f
ac50a2c
0cb7bf9
938b395
d895a00
0ac923e
5e63965
4322e39
bbe8bd3
184585c
dd4dd4e
78b7dab
b0eaef3
92df8b9
bb63b2f
6a9e608
6c39148
b28fdf6
a5233f9
d0ad618
8bd4163
75edd88
0da1e27
4cc8013
c196387
c3316ef
9298709
c1fa134
717a62c
70ade0e
126b3a4
c3d70ae
161b692
10d6487
8962484
06c4abb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: autoDIR | ||
on: [pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 1 | ||
matrix: | ||
python-version: [3.7] | ||
steps: | ||
|
||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Update DIRECTORY | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. name: Update DIRECTORY.md There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will make this change in upcoming PR |
||
run: | | ||
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md | ||
git config --global user.name 'autoDIR' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. directory_writer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will make this change in upcoming PR |
||
git config --global user.email 'mrvnmchm@users.noreply.github.com' | ||
git remote set-url origin https://x-access-token:${{ secrets.gh_token }}@github.com/$GITHUB_REPOSITORY | ||
git checkout $GITHUB_HEAD_REF | ||
git diff-files --quiet | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe that if this command fails then the entire PR is marked with a failing test ❌ which we do not want. On line 28, use Put a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's correct @cclauss, the I will make the changes to line 28, and add the newline at the end in upcoming PR |
||
- name: Push DIRECTORY | ||
if: failure() | ||
run: | | ||
git commit -am "Update: DIRECTORY.md" | ||
git push |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,7 +172,6 @@ def main(): | |
args = input() | ||
|
||
print("good by!") | ||
|
||
|
||
|
||
if __name__ == "__main__": | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment and change the name:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make this change for the upcoming PR