Skip to content

Commit

Permalink
fix workflows and build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn committed Nov 2, 2024
1 parent 0d5a83b commit a47b53b
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 64 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/jh-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
BUILD_TYPE: core
DEFAULT_PYTHON: "3.12.3"
DEFAULT_PYTHON: "3.12"
PIP_TIMEOUT: 60
UV_HTTP_TIMEOUT: 60
UV_SYSTEM_PYTHON: "true"
Expand All @@ -27,15 +27,15 @@ jobs:
publish: ${{ steps.version.outputs.publish }}
steps:
- name: Checkout the repository
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

- name: update build.yaml
run: cp -f build-jethub.yaml build.yaml

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T -

- name: Upload translations
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v4.4.0
with:
name: translations
path: translations.tar.gz
Expand All @@ -96,14 +96,14 @@ jobs:
arch: ${{ fromJson(needs.init.outputs.architectures) }}
steps:
- name: Checkout the repository
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: update build.yaml
run: cp -f build-jethub.yaml build.yaml

- name: Download nightly wheels of frontend
if: needs.init.outputs.channel == 'dev'
uses: dawidd6/action-download-artifact@v3.1.4
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
repo: home-assistant/frontend
Expand All @@ -114,7 +114,7 @@ jobs:

- name: Download nightly wheels of intents
if: needs.init.outputs.channel == 'dev'
uses: dawidd6/action-download-artifact@v3.1.4
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
repo: home-assistant/intents-package
Expand All @@ -125,7 +125,7 @@ jobs:

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
if: needs.init.outputs.channel == 'dev'
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}

Expand All @@ -142,7 +142,7 @@ jobs:
env:
UV_PRERELEASE: allow
run: |
python3 -m pip install "$(grep '^uv' < requirements_test.txt)"
python3 -m pip install "$(grep '^uv' < requirements.txt)"
uv pip install packaging tomli
uv pip install .
python3 script/version_bump.py nightly --set-nightly-version "${{ needs.init.outputs.version }}"
Expand Down Expand Up @@ -189,9 +189,9 @@ jobs:
sed -i "s|noaa-coops|# noaa-coops|g" requirements_all.txt
sed -i "s|pyezviz|# pyezviz|g" requirements_all.txt
sed -i "s|pykrakenapi|# pykrakenapi|g" requirements_all.txt
- name: Download translations
uses: actions/[email protected].7
uses: actions/[email protected].8
with:
name: translations

Expand All @@ -206,14 +206,14 @@ jobs:
echo "${{ github.sha }};${{ github.ref }};${{ github.event_name }};${{ github.actor }}" > rootfs/OFFICIAL_IMAGE
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build base image
uses: jethub-homeassistant/builder@2024.03.5
uses: jethub-homeassistant/builder@2024.08.2
with:
args: |
$BUILD_ARGS \
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
- tinker
steps:
- name: Checkout the repository
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: update build.yaml
run: cp -f build-jethub.yaml build.yaml
Expand All @@ -278,14 +278,14 @@ jobs:
fi
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build base image
uses: jethub-homeassistant/builder@2024.03.5
uses: jethub-homeassistant/builder@2024.08.2
with:
args: |
$BUILD_ARGS \
Expand All @@ -300,7 +300,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: update build.yaml
run: cp -f build-jethub.yaml build.yaml
Expand Down Expand Up @@ -343,10 +343,10 @@ jobs:
registry: ["ghcr.io/jethub-homeassistant", "cr.jethome.work/ha"]
steps:
- name: Checkout the repository
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: Install Cosign
uses: sigstore/cosign-installer@v3.5.0
uses: sigstore/cosign-installer@v3.6.0
with:
cosign-release: "v2.2.3"

Expand All @@ -355,15 +355,15 @@ jobs:

- name: Login to DockerHub
if: matrix.registry == 'cr.jethome.work/ha'
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3.3.0
with:
registry: cr.jethome.work
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_TOKEN }}

- name: Login to GitHub Container Registry
if: matrix.registry == 'ghcr.io/jethub-homeassistant'
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/jh-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- "**strings.json"

env:
DEFAULT_PYTHON: "3.12.3"
DEFAULT_PYTHON: "3.12"

jobs:
upload:
Expand All @@ -22,10 +22,12 @@ jobs:
runs-on: ${{ vars.RUNNER }}
steps:
- name: Checkout the repository
uses: actions/[email protected]
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}

Expand All @@ -46,11 +48,11 @@ jobs:
docker create --name temp-core ghcr.io/home-assistant/aarch64-homeassistant:$VERSION
docker cp temp-core:"/usr/src/homeassistant/homeassistant" ./
docker rm temp-core
- name: Archive translations
shell: bash
run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T -

- name: Upload Translations
uses: transifex/cli-action@v2
with:
Expand Down
Loading

0 comments on commit a47b53b

Please sign in to comment.