Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Jul 23, 2023
1 parent ac7c04f commit da8d71a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Check format"
uses: psf/black@stable
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
SITE_DESCRIPTION: ${{ github.event.repository.description }}
steps:
- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Setup Python"
uses: actions/setup-python@v3
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Publish"
name: "Release"

on:
release:
Expand All @@ -14,12 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Update version"
run: |
current="$(jq --raw-output .version manifest.json | sed 's/\./\\./g')"
sed -i s/$current/${{ github.event.release.tag_name }}/ manifest.json
yq -i '.version = strenv(GITHUB_REF_NAME)' manifest.json
- name: "Zip component"
run: |
Expand All @@ -29,4 +28,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} auto_backup.zip
gh release upload $GITHUB_REF_NAME auto_backup.zip
4 changes: 2 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: "Hassfest"
steps:
- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Validate Hassfest"
uses: home-assistant/actions/hassfest@master
Expand All @@ -27,7 +27,7 @@ jobs:
name: "HACS"
steps:
- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Validate HACS"
uses: hacs/action@main
Expand Down

0 comments on commit da8d71a

Please sign in to comment.