fix(ci): Add condition for release
@@ -50,7 +50,7 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
- # if: github.repository == 'mnubo/kubernetes-py' && github.event_name == 'push' && github.ref == 'master'
+ if: github.repository == 'mnubo/kubernetes-py' && github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- run: |
@@ -66,9 +66,6 @@ jobs:
pipenv install --dev --system --ignore-pipfile
- name: Prepare release
run: |
- echo "GITHUB_REPOSITORY: $GITHUB_REPOSITORY"
- echo "GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME"
- echo "GITHUB_REF: $GITHUB_REF"
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git config http.sslVerify false
git config user.name "GitHub Actions CI/CD"
