mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
Add combined SHA256 GitHub Action
This commit is contained in:
7
.github/workflows/checksum.yml
vendored
7
.github/workflows/checksum.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [created, published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-sha256:
|
generate-sha256:
|
||||||
@@ -45,10 +45,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Upload SHA256 to GitHub Release (only on release)
|
- name: Upload SHA256 to GitHub Release
|
||||||
if: github.event_name == 'release' && github.event.action == 'published'
|
if: github.event_name == 'release'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: setup_harden_debian_ubuntu.sh.sha256
|
files: setup_harden_debian_ubuntu.sh.sha256
|
||||||
|
tag_name: ${{ github.event.release.tag_name }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user