Sandboxie/.github/workflows
offhub b8a7704eca
Add Workflow for SHA256 Hash Calculation on Releases
GitHub Actions Workflow: Hash Released Files

This workflow automates the management of release asset hashes whenever a new release is published or edited. Here's an overview of its functionality:

    Trigger: The workflow is triggered by the publication or editing of a release in the specified repository.

    Download Assets: It downloads all assets associated with the release from GitHub.

    Check for Downloaded Assets: Before calculating hashes, the workflow checks if any assets were successfully downloaded. If no assets are found, it sets an environment variable to skip subsequent steps.

    Calculate SHA256 Hashes: If assets are downloaded, the workflow calculates the SHA256 hash for each asset and saves these hashes in a file named sha256-checksums.txt.

    Check Existing Hash File: The workflow checks for an existing version of the hash file. If found, it compares the new hash file to the existing one.

    Conditional Upload:
        If the hashes match, it skips the upload process.
        If the hashes differ, it deletes the existing hash file asset and uploads the new one.

This workflow ensures that each release includes an up-to-date hash file, enabling users to verify the integrity of downloaded assets efficiently.
2024-09-21 20:57:11 +03:00
..
codeql.yml Build with Qt 5.15.13 (L)GPL 2024-03-24 15:19:43 +01:00
codespell.yml Update codespell.yml 2024-07-22 13:59:30 +02:00
hash.yml Add Workflow for SHA256 Hash Calculation on Releases 2024-09-21 20:57:11 +03:00
lupdate.yml Bump microsoft/setup-msbuild from 1 to 2 2024-02-06 11:18:43 +01:00
main.yml Merge pull request #4160 from love-code-yeyixiao/love-code-yeyixiao-patch-1 2024-09-07 10:37:47 +02:00
stale.yml Update stale.yml 2024-02-07 17:03:53 +01:00
winget.yml Update winget-releaser references 2024-06-25 20:43:39 +02:00