Skip to content

Commit

Permalink
test creating PR instead of pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
jparismorgan committed Jan 22, 2024
1 parent fd7c7a3 commit 673ef90
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-wheels-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build wheels test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
generate_backwards_compatibility_data:
name: Generate Backwards Compatibility Data
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

# Based on https://github.com/TileDB-Inc/conda-forge-nightly-controller/blob/51519a0f8340b32cf737fcb59b76c6a91c42dc47/.github/workflows/activity.yml#L19C10-L19C10
- name: Setup git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Print Python version
run: |
which python
which pip
python --version
- name: Build Indexes
run: |
# Get the release tag.
release_tag=$(git describe --tags --abbrev=0)
echo $release_tag
# Install dependencies.
cd apis/python && pip install . && cd ../..
# Generate data.
python backwards-compatibility-data/generate_data.py $release_tag
# Push this data to a new branch and create PR from it..
git fetch
branch_name="update-backwards-compatibility-data-${release_tag}"
echo $branch_name
git checkout -b "$branch_name"
git add backwards-compatibility-data/data/
git commit -m "[automated] Update backwards-compatibility-data for release $release_tag"
git push origin "$branch_name"
gh pr create --base main --head "$branch_name" --title "[automated] Update backwards-compatibility-data for release $release_tag" --body "This PR was created in a Github Actions job during the release process."
1 change: 1 addition & 0 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
run-tests:
if: ${{ false }}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
run-tests:
if: ${{ false }}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/quarto-render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
quarto-render-and-deploy:
if: ${{ false }}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down

0 comments on commit 673ef90

Please sign in to comment.