Skip to content
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

yaml syntax update #3

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
name: Check if version.py is changed and update if the version.py is not changed
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ github.token }}
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v32
Expand All @@ -27,30 +30,29 @@ jobs:
if: steps.changed-files-specific.outputs.any_changed == 'false'
run: |
echo "Version file not changed, running script to change the version file."
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
#git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
python .github/scripts/update_version.py
git config --global user.email "[email protected]"
git config --global user.name "bsavitzky"
git commit -a -m "Update version number"
git push origin main
env:
token: ${{ github.token }}
sync_with_dev:
runs-on: ubuntu-latest
name: Sync main with dev
steps:
- uses: actions/checkout@v3
- name: Sync main with dev
run: |
git pull --rebase origin main
git push origin dev
uses: actions/checkout@v3
with:
ref: dev
fetch-depth: 0
token: ${{ github.token }}
#with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}

- run: |
# set strategy to default merge
git config pull.rebase false
git config --global user.email "[email protected]"
git config --global user.name "bsavitzky"
git pull origin main --commit --no-edit
git push origin dev
deploy:
needs: update_version
runs-on: ubuntu-latest
Expand Down