Skip to content

Commit 1816ffd

Browse files
authored
Merge pull request #55 from sayurin:actions
Update GitHub Actions and dependencies for consistency
2 parents 4b1a641 + ee21c20 commit 1816ffd

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
permissions:
1414
contents: write
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
17+
with:
18+
persist-credentials: false
1719

1820
- name: Validate version format
1921
run: |
@@ -35,22 +37,25 @@ jobs:
3537
custom_components/echonet_lite/manifest.json
3638
3739
- name: Commit and tag
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3842
run: |
3943
git config user.name "github-actions[bot]"
4044
git config user.email "github-actions[bot]@users.noreply.github.com"
4145
git add custom_components/echonet_lite/manifest.json
4246
git commit -m "Release v${{ inputs.version }}"
4347
git tag "v${{ inputs.version }}"
44-
git push origin HEAD --tags
48+
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD --tags
4549
4650
- name: ZIP echonet_lite Dir
4751
run: |
4852
cd ${{ github.workspace }}/custom_components/echonet_lite
4953
zip echonet_lite.zip -r ./
5054
5155
- name: Create GitHub Release
52-
uses: softprops/action-gh-release@v3
56+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
5357
with:
5458
tag_name: "v${{ inputs.version }}"
5559
generate_release_notes: true
60+
prerelease: true
5661
files: ${{ github.workspace }}/custom_components/echonet_lite/echonet_lite.zip

.github/workflows/validate.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ on:
55
pull_request:
66
workflow_dispatch:
77
schedule:
8-
- cron: '0 0 * * *'
8+
- cron: "0 0 * * *"
99
jobs:
1010
validation:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v6
13+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
14+
with:
15+
persist-credentials: false
1416
- name: HACS validation
15-
uses: hacs/action@main
17+
uses: hacs/action@1ebf01c408f29afcb6406bd431bc98fd8cbb15aa # main
1618
with:
1719
category: integration
1820
- name: Hassfest validation
19-
uses: home-assistant/actions/hassfest@master
21+
uses: home-assistant/actions/hassfest@e91ad1948e57189485b9c1ad608af0c303946f89 # master

0 commit comments

Comments
 (0)