File tree Expand file tree Collapse file tree 2 files changed +33
-22
lines changed Expand file tree Collapse file tree 2 files changed +33
-22
lines changed Original file line number Diff line number Diff line change 9
9
permissions : write-all
10
10
runs-on : ubuntu-latest
11
11
steps :
12
+ - uses : actions/checkout@v2
13
+ - name : ' Setup jq'
14
+ uses : dcarbone/install-jq-action@v2
15
+ with :
16
+ version : ' ${{ inputs.version }}'
17
+ force : ' ${{ inputs.force }}'
18
+ - id : validate_manifest
19
+ run : |
20
+ version=$(git log -1 --format='%H')
21
+ jq --arg v "${version}" '.version = $v' manifest.json > tempManifest.json
22
+ mv tempManifest.json manifest.json
12
23
- uses : actions/checkout@v3
13
24
- name : Update file with merge commit hash
14
25
run : |
15
26
git pull origin ${{ github.ref }}
16
- git log -1 --format='%H' > latestCommit.md
17
27
git config --global user.email "[email protected] "
18
28
git config --global user.name "ActionBot"
19
- git add latestCommit.md
29
+ git add manifest.json
20
30
git commit -m 'update commit hash'
21
31
git push origin ${{ github.ref }}
Original file line number Diff line number Diff line change 1
1
{
2
- "snippetCategories" : [
3
- {
4
- "metadata" : " /snippets/functions/third-party/manifest.json"
5
- },
6
- {
7
- "metadata" : " /snippets/functions/mongodb-crud/manifest.json"
8
- },
9
- {
10
- "metadata" : " /snippets/functions/api-functions/manifest.json"
11
- },
12
- {
13
- "metadata" : " /snippets/functions/function-context/manifest.json"
14
- },
15
- {
16
- "metadata" : " /snippets/triggers/match/manifest.json"
17
- },
18
- {
19
- "metadata" : " /snippets/triggers/project/manifest.json"
20
- }
21
- ]
2
+ "snippetCategories" : [
3
+ {
4
+ "metadata" : " /snippets/functions/third-party/manifest.json"
5
+ },
6
+ {
7
+ "metadata" : " /snippets/functions/mongodb-crud/manifest.json"
8
+ },
9
+ {
10
+ "metadata" : " /snippets/functions/api-functions/manifest.json"
11
+ },
12
+ {
13
+ "metadata" : " /snippets/functions/function-context/manifest.json"
14
+ },
15
+ {
16
+ "metadata" : " /snippets/triggers/match/manifest.json"
17
+ },
18
+ {
19
+ "metadata" : " /snippets/triggers/project/manifest.json"
20
+ }
21
+ ],
22
+ "version" : " e2388f73b1f6635f983d2dcc434357c6e94eb876"
22
23
}
You can’t perform that action at this time.
0 commit comments