Browse Source

Update github actions not to use obsolete versions

Fixed versions of action packages were inherited from upstream (and
commonly used in examples everywhere on the internet).  There is low
risk of future versions breaking things, so just use unversioned actions.
Jason Rumney 3 years ago
parent
commit
13799811de

+ 6 - 5
.github/workflows/hacs-validate.yml

@@ -6,11 +6,12 @@ on:
 
 
 jobs:
 jobs:
   validate:
   validate:
-    runs-on: 'ubuntu-latest'
+    runs-on: ubuntu-latest
     steps:
     steps:
-      - uses: 'actions/checkout@v2'
+      - uses: actions/checkout
       - name: HACS validation
       - name: HACS validation
-        uses: 'hacs/action@main'
+        uses: hacs/action@main
         with:
         with:
-          category: 'integration'
-          ignore: "wheels"
+          category: integration
+          ignore: wheels
+

+ 2 - 2
.github/workflows/hassfest-validate.yml

@@ -6,7 +6,7 @@ on:
 
 
 jobs:
 jobs:
   validate:
   validate:
-    runs-on: 'ubuntu-latest'
+    runs-on: ubuntu-latest
     steps:
     steps:
-      - uses: 'actions/checkout@v2'
+      - uses: actions/checkout
       - uses: home-assistant/actions/hassfest@master
       - uses: home-assistant/actions/hassfest@master

+ 2 - 2
.github/workflows/linting.yml

@@ -6,10 +6,10 @@ jobs:
   lint:
   lint:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout
 
 
       - name: Setup Python
       - name: Setup Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python
         with:
         with:
           python-version: '3.10'
           python-version: '3.10'
 
 

+ 2 - 2
.github/workflows/tests.yml

@@ -10,11 +10,11 @@ jobs:
         python-version: ['3.10']
         python-version: ['3.10']
 
 
     steps:
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout
         with:
         with:
           fetch-depth: 0
           fetch-depth: 0
       - name: Set up Python ${{ matrix.python-version }}
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python
         with:
         with:
           python-version: ${{ matrix.python-version }}
           python-version: ${{ matrix.python-version }}
       - name: Install dependencies
       - name: Install dependencies