You've already forked armbian.github.io
mirror of
https://github.com/armbian/armbian.github.io.git
synced 2026-01-06 11:42:20 -08:00
Test repo managing with dry-run sync
This commit is contained in:
@@ -3,6 +3,10 @@ on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
inputs:
|
||||
ENABLED:
|
||||
required: false
|
||||
type: boolean
|
||||
default: true
|
||||
ACCESS_NAME:
|
||||
required: false
|
||||
type: string
|
||||
@@ -59,9 +63,18 @@ env:
|
||||
|
||||
jobs:
|
||||
|
||||
noop:
|
||||
name: "Disabled - no operation"
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.ENABLED == false }}
|
||||
steps:
|
||||
- name: "External download is disabled"
|
||||
run: echo "External download workflow is disabled. Skipping all jobs."
|
||||
|
||||
perm:
|
||||
name: "Restore permissions"
|
||||
runs-on: repository-sync
|
||||
if: ${{ inputs.ENABLED == true }}
|
||||
steps:
|
||||
- name: "Restore permissions"
|
||||
run: |
|
||||
|
||||
@@ -20,7 +20,7 @@ env:
|
||||
INCOMING_PATH: /armbian/openssh-server/storage/incoming
|
||||
PUBLISHING_PATH: /publishing/repository
|
||||
CLEANUP_INPUT: true
|
||||
DRY_RUN_SYNC: false
|
||||
DRY_RUN_SYNC: true
|
||||
|
||||
concurrency:
|
||||
group: pipeline
|
||||
@@ -45,10 +45,10 @@ jobs:
|
||||
runs-on: repository
|
||||
steps:
|
||||
|
||||
# - name: Delete empty folders in INCOMING_PATH
|
||||
# run: |
|
||||
#
|
||||
# sudo find "${{ env.INCOMING_PATH }}" -type d -empty -delete
|
||||
- name: Delete empty folders in INCOMING_PATH
|
||||
run: |
|
||||
|
||||
sudo find "${{ env.INCOMING_PATH }}" -type d -empty -delete
|
||||
|
||||
- name: Display STORAGE_PATH tree structure
|
||||
run: |
|
||||
@@ -134,8 +134,9 @@ jobs:
|
||||
external:
|
||||
name: "Download external"
|
||||
needs: Copying
|
||||
uses: armbian/armbian.github.io/.github/workflows/infrastructure-download-external.yml@main
|
||||
uses: armbian/armbian.github.io/.github/workflows/infrastructure-download-external.yml@repo_fix
|
||||
with:
|
||||
ENABLED: ${{ inputs.download_external || true }}
|
||||
ACCESS_NAME: armbian
|
||||
BUILD_RUNNER: "ubuntu-latest"
|
||||
HOST_DEPLOY: "repo.armbian.com"
|
||||
@@ -331,6 +332,7 @@ jobs:
|
||||
with:
|
||||
repository: armbian/build
|
||||
fetch-depth: 1
|
||||
ref: repo_fix
|
||||
clean: false
|
||||
|
||||
- name: "Build repository ${{ matrix.repository.name }}"
|
||||
@@ -409,6 +411,7 @@ jobs:
|
||||
with:
|
||||
repository: armbian/build
|
||||
clean: false
|
||||
ref: repo_fix
|
||||
fetch-depth: 1
|
||||
path: build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user