mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
Remove the usage of shared artifacts from the checks workflow (#2673)
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user