From 2a43a06c54446fc25f85cbb4ac1e9bf84ba37abc Mon Sep 17 00:00:00 2001 From: Conrad Date: Wed, 6 May 2020 10:14:42 +0200 Subject: [PATCH] Minor Cleanup --- README.md | 19 +++++++++++-------- action.yml | 4 ++-- entrypoint.sh | 3 +-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 633266a..2e822b9 100644 --- a/README.md +++ b/README.md @@ -21,23 +21,26 @@ The following parameters can be used in your custom action configuration. This is a simple usage example of this script: -``` -name: Autopep 8 +```yaml +# This action works with pull requests and pushes +name: Continuous Integration -on: [pull_request] +on: + pull_request: + push: + branches: + - master jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: - fetch-depth: 1 + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} - uses: creyD/action_autopep8@master - with: - dependencies: 'requirements.txt' - branch: ${{ github.head_ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/action.yml b/action.yml index e3e4cca..672985e 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ -name: 'Autopep8 Action' -description: 'Automatically runs the autopep8 command against any commit/ pull request created.' +name: Autopep8 Action +description: Automatically runs the autopep8 command on all your changes. author: Conrad Großer diff --git a/entrypoint.sh b/entrypoint.sh index 3723aa6..074e8ad 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -25,9 +25,8 @@ _git_changed() { [[ -n "$(git status -s)" ]] } -echo "Installing dependencies..." +echo "Installing autopep8..." pip install -q --upgrade pip -# Install dependencies pip install -q autopep8 # Install custom project dependencies if applicable