Skip to content

Commit

Permalink
Merge pull request #8103 from OpenMined/update_token
Browse files Browse the repository at this point in the history
upgraded to new personal grained access token in pysyft
  • Loading branch information
rasswanth-s authored Sep 21, 2023
2 parents 84fbd3c + 59650e6 commit fa78869
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 25 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cd-hagrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SYFT_BUMP_TOKEN }}
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }}
- name: Install checksumdir
run: |
pip install --upgrade checksumdir
Expand Down Expand Up @@ -85,13 +85,12 @@ jobs:

- name: Commit changes
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}}
uses: EndBug/add-and-commit@v7
uses: EndBug/add-and-commit@v9
with:
author_name: Madhava Jay
author_email: [email protected]
message: "bump version"
author_name: ${{ secrets.OM_BOT_NAME }}
author_email: ${{ secrets.OM_BOT_EMAIL }}
message: "[hagrid] bump version"
add: "['./packages/hagrid/.bumpversion.cfg','./packages/hagrid/setup.py','./packages/hagrid/hagrid/version.py', './scripts/hagrid_hash', './packages/hagrid/hagrid/manifest_template.yml']"
pull_strategy: NO-PULL

- name: Build and publish
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd-syft-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
repository: ${{ secrets.INFRA_REPO }}
ref: "main"
token: ${{ secrets.OM_BOT_TOKEN }}
token: ${{ secrets.INFRA_BOT_COMMIT_TOKEN }}
path: infrastructure

- name: Set up Python
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.OM_BOT_TOKEN }}
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v3
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
with:
author_name: ${{ secrets.OM_BOT_NAME }}
author_email: ${{ secrets.OM_BOT_EMAIL }}
message: "bump version"
message: "[syft]bump version"
add: "['.bumpversion.cfg', 'VERSION', 'packages/grid/VERSION', 'packages/grid/devspace.yaml', 'packages/syft/src/syft/VERSION', 'packages/syft/setup.cfg', 'packages/grid/frontend/package.json', 'packages/syft/src/syft/__init__.py', 'packages/hagrid/hagrid/manifest_template.yml', 'packages/grid/helm/syft/Chart.yaml', 'packages/grid/helm/repo', 'packages/hagrid/hagrid/deps.py', 'packages/grid/podman/podman-kube/podman-syft-kube.yaml' , 'packages/syftcli/manifest.yml']"

- name: Scheduled Build and Publish
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
with:
repository: ${{ secrets.INFRA_REPO }}
ref: "main"
token: ${{ secrets.OM_BOT_TOKEN }}
token: ${{ secrets.INFRA_BOT_COMMIT_TOKEN }}
path: infrastructure

# This step will copy the generated K8s manifest files to the correct directory in Infra repo
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/cd-syftcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SYFT_BUMP_TOKEN }}
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }}

- name: Install checksumdir
run: |
Expand Down Expand Up @@ -83,15 +83,14 @@ jobs:
if: ${{steps.get-hashes.outputs.current_hash != steps.get-hashes.outputs.previous_hash }}
run: echo $(checksumdir packages/syftcli/syftcli -e version.py) > ./scripts/syftcli_hash

- name: Commit changes
- name: Commit changes to Syft CLI
if: ${{steps.get-hashes.outputs.current_hash != steps.get-hashes.outputs.previous_hash }}
uses: EndBug/add-and-commit@v7
uses: EndBug/add-and-commit@v9
with:
author_name: Madhava Jay
author_email: [email protected]
message: "bump version"
author_name: ${{ secrets.OM_BOT_NAME }}
author_email: ${{ secrets.OM_BOT_EMAIL }}
message: "[syftcli]bump version"
add: "['./packages/syftcli/.bumpversion.cfg','./packages/syftcli/setup.py','./packages/syftcli/syftcli/version.py', './scripts/syftcli_hash']"
pull_strategy: NO-PULL

- name: Build and publish
if: ${{steps.get-hashes.outputs.current_hash != steps.get-hashes.outputs.previous_hash }}
Expand All @@ -114,8 +113,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SYFT_BUMP_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v3
Expand Down Expand Up @@ -152,8 +149,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SYFT_BUMP_TOKEN }}

- name: Deployed Version
run: echo ${{needs.deploy-syft-cli.outputs.deployed_version}}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/post-merge-cleanup-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SYFT_BUMP_TOKEN }}
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Commit changes

- name: Commit changes to remove notebooks
uses: EndBug/add-and-commit@v9
with:
author_name: Madhava Jay
author_email: [email protected]
author_name: ${{ secrets.OM_BOT_NAME }}
author_email: ${{ secrets.OM_BOT_EMAIL }}
message: "cleanup notebooks"
remove: "-r notebooks/Experimental/"
commit: "-a"
Empty file.

0 comments on commit fa78869

Please sign in to comment.