Remove the usage of shared artifacts from the checks workflow (#2673)

This commit is contained in:
Joakim Sørensen
2024-08-27 13:29:48 +02:00
committed by GitHub
parent fff88bd7ab
commit 6b3eb9c270
2 changed files with 7 additions and 26 deletions
+6 -24
View File
@@ -55,18 +55,6 @@ jobs:
id: category
run: echo "category=$(python3 -m scripts.changed.category)" >> $GITHUB_OUTPUT
- name: Clone new addition
if: steps.removal.outputs.removal != 'true'
run: |
repo=$(python3 -m scripts.changed.repo)
git clone --depth 1 "https://github.com/$repo" /tmp/repositories/addition
- name: Upload shared artifacts
if: steps.removal.outputs.removal != 'true'
uses: actions/upload-artifact@v4
with:
name: repositories
path: /tmp/repositories
owner:
runs-on: ubuntu-latest
@@ -77,12 +65,6 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4.1.7
- name: Download shared artifacts
uses: actions/download-artifact@v4
with:
name: repositories
path: /tmp/repositories
- name: Install dependencies if needed
run: scripts/setup
@@ -90,6 +72,7 @@ jobs:
run: python3 -m scripts.check.owner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{needs.preflight.outputs.repository}}
edits:
runs-on: ubuntu-latest
@@ -114,11 +97,10 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4.1.7
- name: Download shared artifacts
uses: actions/download-artifact@v4
with:
name: repositories
path: /tmp/repositories
- name: Clone new addition
if: steps.removal.outputs.removal != 'true'
run: |
git clone --depth 1 "https://github.com/${{needs.preflight.outputs.repository}}" /tmp/repositories/addition
- name: Get hassfest action
run: |
@@ -149,4 +131,4 @@ jobs:
uses: "hacs/action@main"
with:
repository: ${{needs.preflight.outputs.repository}}
category: ${{needs.preflight.outputs.category}}
category: ${{needs.preflight.outputs.category}}