Skip to content

Commit

Permalink
ci: remove setup python from stage and release workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
  • Loading branch information
zvigrinberg committed Mar 3, 2024
1 parent 65a5bec commit d58af3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
name: Deploy release
environment: staging
env:
RUN_PYTHON_BIN: ${{ vars.RUN_PYTHON_BIN }}
# only trigger the workflow on the base repository and if the merged branch name starts with release.
if: (github.repository_owner == 'RHEcosystemAppEng' && startsWith(github.head_ref, 'release/')) || (github.repository_owner == 'RHEcosystemAppEng' && github.ref_name == 'main' && contains(github.event.commits[0].message, 'release/directly'))
outputs:
Expand All @@ -40,17 +39,6 @@ jobs:
java-version: 11
cache: maven

- name: setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: get Python location
id: python-location
run: |
echo "python-bin-location=$(echo $pythonLocation)/bin" >> $GITHUB_OUTPUT
- name: create ssh agent
uses: webfactory/ssh-agent@v0.7.0
with:
Expand All @@ -73,8 +61,6 @@ jobs:
mvn release:perform -B -ff -DskipTests -Dskip.junit_platform=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXHORT_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
EXHORT_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"

- name: Get pom version of released artifact
id: project
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ jobs:
java-version: 11
cache: maven

- name: setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: get Python location
id: python-location
run: |
echo "python-bin-location=$(echo $pythonLocation)/bin" >> $GITHUB_OUTPUT
- name: Get pom specs
id: project
run: |
Expand All @@ -51,8 +41,6 @@ jobs:
github.repository == 'RHEcosystemAppEng/exhort-java-api'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXHORT_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
EXHORT_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
run: mvn deploy -Pprepare-deployment,deploy-github -B -ff -DskipTests=true -Dskip.junit_platform=true

release:
Expand Down

0 comments on commit d58af3c

Please sign in to comment.