1818 update :
1919 runs-on : ubuntu-latest
2020 steps :
21- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v6
22+ with :
23+ ref : ${{ inputs.metadataBranch }}
24+
25+ - name : Get updates.json from metadata branch
26+ shell : bash
27+ run : |
28+ # Get the updates.json file from the specified metadata branch
29+ mkdir -p ~/.cache
30+ cp -- updates.json ~/.cache/updates.json
31+
32+ - uses : actions/checkout@v6
2233
2334 - name : Setup node
2435 uses : actions/setup-node@v4
@@ -29,31 +40,25 @@ jobs:
2940 - name : Install dependencies
3041 run : npm ci
3142
32- - name : Get updates.json from metadata branch
33- run : |
34- # Get the updates.json file from the specified metadata branch
35- mkdir -p Downloads
36- git show ${{ inputs.metadataBranch }}:updates.json > Downloads/updates.json
37-
3843 - name : Run update_updates_json_file.ts script
3944 run : |
4045 npm run-script update_updates_json_file
4146 env :
4247 githubRef : ${{ inputs.githubRef }}
4348 xpiFilePath : ${{ inputs.xpiFilePath }}
44- updatesFilePath : Downloads /updates.json
49+ updatesFilePath : ~/.cache /updates.json
4550
4651 # update updates.json so that all people who have
4752 # the selfhosted version installed get the new update
4853 # https://extensionworkshop.com/documentation/manage/updating-your-extension/
4954 - name : Checkout metadata branch for commit
50- uses : actions/checkout@v4
55+ uses : actions/checkout@v6
5156 with :
5257 ref : ${{ inputs.metadataBranch }}
5358
5459 - name : Copy updated updates.json to metadata branch
5560 run : |
56- mv -f -- Downloads /updates.json updates.json
61+ mv -f -- ~/.cache /updates.json updates.json
5762
5863 - name : Commit updated updates.json
5964 run : |
0 commit comments