Skip to content

Commit

Permalink
adding workflow for updating api version live
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed May 30, 2024
1 parent e3484e1 commit 7e5ee22
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update_api_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@



name: update api version

on:
pull_request:
branches: ['master']

jobs:
updateapiversion:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.8 #install the python needed
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script
run: |
python beacon/api_version.py
git config --global user.email "[email protected]"
git config --global user.name "API version update"
git add .
git commit -m "api version automatically generated"
git push

0 comments on commit 7e5ee22

Please sign in to comment.