GitHub上下文.yaml
All checks were successful
/ job3 (push) Has been skipped
/ job2 (push) Successful in 5s
/ job1 (push) Successful in 17s

This commit is contained in:
严浩
2025-04-14 13:51:57 +08:00
parent 06f32d799a
commit 7eee04caf7
6 changed files with 11 additions and 51 deletions

41
.github/workflows/hashFiles.yaml.off vendored Normal file
View File

@ -0,0 +1,41 @@
# act --workflows .github/workflows/hashFiles.yaml --pull=false
on:
push:
branches: ["main"]
pull_request:
defaults:
run:
shell: bash
jobs:
hashFiles:
runs-on: ubuntu-latest
steps:
- name: hashFiles()
run: |
echo "START"
# https://github.com/nektos/act/issues/1012
echo "-${{ hashFiles('README.md') }}"
echo "-${{ hashFiles('**/*.yaml') }}"
echo "END"
go-hashfiles: # https://gitea.com/actions/go-hashfiles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
# Setup the Go environment. This step can be skipped if Go has been installed.
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- uses: https://gitea.com/actions/go-hashfiles@main
id: get-hash
with:
patterns: |-
go.sum
./admin/*
**/package-lock.json
README.md
- name: Echo hash
run: echo ${{ steps.get-hash.outputs.hash }}