Skip to content

Commit

Permalink
ci: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jul 2, 2024
1 parent e6da243 commit a548360
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 1
labels:
- commit-updates
26 changes: 10 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,20 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 2
ref: ${{ github.head_ref }}
- name: Install cddlconv
run: cargo install [email protected]
- name: Install dependencies
run: npm ci
- name: Build and test
run: npm test
- id: check_changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "changes=true" >> "$GITHUB_OUTPUT";
fi
- name: Commit and push changes
if: contains(github.event.pull_request.labels.*.name, 'commit-updates') && steps.check_changes.outputs.changes == 'true'
run: |
git status
git submodule deinit --all
echo "After submodule deinit"
git status
git config --global user.name 'browser-automation-bot'
git config --global user.email '[email protected]'
git add . --all
git commit -m 'chore: commit updated files' --no-verify
git push
if: contains(github.event.pull_request.labels.*.name, 'commit-updates')
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # 5.0.1
with:
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
commit_message: "fix: generate files"
commit_options: -n --signoff
commit_user_name: Browser Automation Bot
commit_user_email: [email protected]
commit_author: Browser Automation Bot <[email protected]>
3 changes: 1 addition & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ jobs:
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
target-branch: main
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
label: commit-updates
manifest-file: .release-please-manifest.json
2 changes: 2 additions & 0 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cddlconv specs/permissions/all.cddl > src/gen/permissions.ts
(cd specs/webdriver-bidi && git reset --hard HEAD && git clean -fd)
(cd specs/permissions && git reset --hard HEAD && git clean -fd)

git submodule deinit --all

npx tsc -p tsconfig.json
npx tsd
npm run format

0 comments on commit a548360

Please sign in to comment.