Merge pull request 'actions: add test for hashFiles()' (#714) from earl-warren/end-to-end:wip-hashfile into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/714 Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
commit
4ee6b65584
1 changed files with 8 additions and 7 deletions
|
|
@ -98,10 +98,11 @@ jobs:
|
||||||
set -x
|
set -x
|
||||||
test "${{ fromJSON('["one","two"]')[0] }}" = 'one'
|
test "${{ fromJSON('["one","two"]')[0] }}" = 'one'
|
||||||
|
|
||||||
# As of act v1.13.0 this fails for real (before it pretended to work but did not)
|
- uses: actions/checkout@v4
|
||||||
# - name: hashFiles
|
|
||||||
# run: |
|
- name: hashFiles
|
||||||
# set -x
|
run: |
|
||||||
# hash="bd52020371c038c4ad38a8d2df05dfa1a220d40fbe1ae83b63d6010cb527e531"
|
set -x
|
||||||
# test "${{ hashFiles('actions/example-expression/.forgejo/fileone.txt') }}" = $hash
|
hash="aea6ca2329c852f5b480ec35e1fe09d39a6bd1b50f4f9cc38fbd4fef870dc107"
|
||||||
# test "${{ hashFiles('actions/example-expression/.forgejo/fileone.*') }}" = $hash
|
test "${{ hashFiles('.forgejo/fileone.txt') }}" = $hash
|
||||||
|
test "${{ hashFiles('.forgejo/fileone.*') }}" = $hash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue