supported metadata update #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: supported metadata update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 3 22 * * * | |
jobs: | |
registry-check: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | |
- uses: salesforcecli/github-workflows/.github/actions/gitConfig@main | |
- uses: actions/setup-node@v3 | |
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 |