Skip to content

Commit

Permalink
Don't update version on push
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Feb 13, 2024
1 parent bffd429 commit aa69076
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/run_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,15 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'Benchmark of pyccel')
outputs:
new_version: ${{ steps.check_version.outputs.new_version }}
version: ${{ steps.check_version.outputs.version }}

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pyccel
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install pyccel
- name: Check Version
- name: Check version
id: check_version
run: |
new_version=$(python -c "from pyccel import __version__; print(__version__)")
echo "new_version=${new_version}" >> $GITHUB_OUTPUT
old_version=$(cat current_version.txt)
echo "version=${old_version}" >> $GITHUB_OUTPUT
Benchmark_main:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -82,7 +73,7 @@ jobs:
- name: Write README
uses: ./.github/actions/create_readme
with:
version: "${{ needs.Check_Pyccel_Version.outputs.new_version }}"
version: "${{ needs.Check_Pyccel_Version.outputs.version }}"
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
Expand Down

0 comments on commit aa69076

Please sign in to comment.