Skip to content

Commit

Permalink
Add missing GHA changes
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 3, 2024
1 parent cb5feb1 commit 6393166
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@ jobs:
- name: check-java
run: java --version

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@v1

- name: build-java
run: ./gradlew ${{ env.GRADLE_SWITCHES }} build

- name: build-python
run: |
for directory in rewrite/rewrite-*/; do
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
- name: set-up-gradle
uses: gradle/actions/setup-gradle@v4

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@v1

- name: publish-candidate
if: contains(github.ref, '-rc.')
run: |
Expand Down Expand Up @@ -70,14 +78,6 @@ jobs:
echo "Extracted version: $version"
echo "::set-output name=VERSION::$version"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Set project version with Poetry
working-directory: rewrite
run: poetry version ${{ steps.extract_version.outputs.VERSION }}
Expand Down

0 comments on commit 6393166

Please sign in to comment.