mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
* Update linux-image-current-x86.githash * Update linux-image-current-x86.githash * Update hashes for repository * Update linux-image-edge-mvebu.githash * Update hashes for repository * Update hashes for repository * Update hashes for repository * Add arch information * Update linux-image-current-x86.githash * Update hashes for repository * Update hashes for repository * Update hashes for repository * Update hashes for repository * Update build-with-docker.yml * Update build-with-docker.yml * Update linux-image-legacy-rockchip-rk3588.githash * Update linux-image-edge-mvebu.githash * Update hashes for repository * Update linux-image-edge-bcm2711.githash * Update linux-image-edge-odroidxu4.githash * Update hashes for repository * Update smoke-tests.yml * Update update-cache.yml * Update hashes for repository * Deprecation * fix * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Update hashes for repository * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Force rebuilt * Update hashes for repository * Update hashes for repository * Update hashes for repository * Update hashes for repository * Cleaning the code * Update hashes for repository * Update hashes for repository * Update update-cache.yml * Update update-cache.yml * Add runner deploy script * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update update-cache.yml * Update hashes for repository * Update update-cache.yml * Update build-u-boot-with-docker.yml * Update build-kernel.yml * Update build-desktop.yml * Update build-u-boot-with-docker.yml * Try with having sources within. * Update config-docker.conf * Update config-docker.conf * Update hashes for repository * Update check-for-changes.yml * Create clean-upload.yaml * Update clean-upload.yaml * Update clean-upload.yaml * Update clean-upload.yaml * Update clean-upload.yaml * Rename * Update clean-upload.yml * Update check-for-changes.yml * Update update-version.yml * Update clean-upload.yml * Update hashes for repository * Update linux-image-legacy-rockchip-rk3588.githash * Update linux-image-current-arm64.githash * Update build-kernel.yml * Update build-desktop.yml * Update hashes for repository * Update hashes for repository * Force rebuild * Update hashes for repository * Force rebuild * Update hashes for repository * Update hashes for repository * Update check-for-changes.yml * Update check-for-changes.yml * Update hashes for repository * Force full rebuild * Update hashes * Update hashes for repository * Update update-cache.yml * Bump actions/checkout from 3.1.0 to 3.2.0 (#32) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update update-cache.yml * Update README.md * Update runners status * Update hashes for repository Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Armbianworker <info@armbian.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
100 lines
2.5 KiB
YAML
100 lines
2.5 KiB
YAML
name: Update hash
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
inputs:
|
|
uploading:
|
|
type: string
|
|
secrets:
|
|
GPG_KEY1:
|
|
required: true
|
|
GPG_PASSPHRASE1:
|
|
required: true
|
|
GPG_KEY2:
|
|
required: true
|
|
GPG_PASSPHRASE2:
|
|
required: true
|
|
SCRIPTS_ACCESS_TOKEN:
|
|
required: true
|
|
KEY_TORRENTS:
|
|
required: true
|
|
KNOWN_HOSTS_UPLOAD:
|
|
required: true
|
|
jobs:
|
|
|
|
Hash:
|
|
|
|
name: Update
|
|
runs-on: fast
|
|
if: ${{ github.repository_owner == 'Armbian' }}
|
|
steps:
|
|
|
|
- name: Remove previous artefacts if any
|
|
run: |
|
|
|
|
sudo rm -rf changes 2>/dev/null || true
|
|
|
|
- name: Download changes
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: changes
|
|
|
|
- name: Read value
|
|
run: |
|
|
|
|
[ -s changes ] || echo "SKIP=yes" >> $GITHUB_ENV
|
|
|
|
- name: Checkout Armbian build script
|
|
if: ${{ env.SKIP != 'yes' }}
|
|
uses: actions/checkout@v3.2.0
|
|
with:
|
|
fetch-depth: 0
|
|
repository: armbian/build
|
|
path: build
|
|
ref: nightly
|
|
clean: false
|
|
|
|
- name: Checkout Armbian support scripts
|
|
if: ${{ env.SKIP != 'yes' }}
|
|
uses: actions/checkout@v3.2.0
|
|
with:
|
|
fetch-depth: 0
|
|
repository: armbian/scripts
|
|
token: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
|
|
path: scripts
|
|
clean: true
|
|
|
|
- name: Import GPG key
|
|
if: ${{ env.SKIP != 'yes' }}
|
|
uses: crazy-max/ghaction-import-gpg@v5
|
|
with:
|
|
gpg_private_key: ${{ secrets.GPG_KEY2 }}
|
|
passphrase: ${{ secrets.GPG_PASSPHRASE2 }}
|
|
workdir: scripts
|
|
git_user_signingkey: true
|
|
git_commit_gpgsign: true
|
|
|
|
- name: Download artefacts
|
|
if: ${{ env.SKIP != 'yes' }}
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: hash
|
|
|
|
- name: Update scripts
|
|
if: ${{ env.SKIP != 'yes' }}
|
|
run: |
|
|
|
|
sudo rsync -ar --remove-source-files *.git* scripts/hash-beta/ || true
|
|
cd scripts
|
|
sudo chown -R $USER:$USER .git
|
|
if git status --porcelain | grep .; then
|
|
git config --global user.email "info@armbian.com"
|
|
git config --global user.name "Armbianworker"
|
|
git config pull.rebase false
|
|
git pull
|
|
git add .
|
|
git commit --allow-empty -m "Update hashes for ${{ env.FILE_DEST }} repository"
|
|
git push
|
|
fi
|