-
Notifications
You must be signed in to change notification settings - Fork 102
37 lines (35 loc) · 1.19 KB
/
supportedMetadataUpdate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: supported metadata update
on:
workflow_dispatch:
schedule:
- cron: 3 22 * * *
jobs:
registry-check:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
- uses: salesforcecli/github-workflows/.github/actions/getGithubUserInfo@main
id: github-user-info
with:
SVC_CLI_BOT_GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
- uses: salesforcecli/github-workflows/.github/actions/gitConfig@main
with:
username: ${{ steps.github-user-info.outputs.username }}
email: ${{ steps.github-user-info.outputs.email }}
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- run: yarn install --network-timeout 600000
- run: yarn build
- run: yarn update-supported-metadata
- run: |
if [[ -n $(git status --short) ]]; then
git add METADATA_SUPPORT.md
git commit -m "chore: auto-update metadata coverage in METADATA_SUPPORT.md [no ci]" --no-verify
git push --no-verify
else
echo "Already up to date"
fi