Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: align renovate config with main repo #702

Merged
merged 4 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- renovate/** # support automergeType=branch

# This configuration cancels previous runs if a new run is started on the same PR. Only one run at a time per PR.
# From https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
Expand All @@ -25,7 +28,7 @@ jobs:
- run: yarn sync
- run: yarn build
- name: Deploy to Draft to Netlify
if: '! github.event.pull_request.head.repo.fork'
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref, 'refs/heads/renovate') }}
id: deployment
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand All @@ -35,20 +38,20 @@ jobs:
netlify deploy --dir build --message '${{ github.event.commits[0].message }}' > log.tmp.txt 2>&1
cat log.tmp.txt | grep -E 'Website draft URL:' > log.txt
- name: Read deployment log
if: '! github.event.pull_request.head.repo.fork'
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref, 'refs/heads/renovate') }}
id: logs
uses: juliangruber/read-file-action@v1
with:
path: log.txt
- name: Comment PR with draft publish logs
if: '! github.event.pull_request.head.repo.fork'
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref, 'refs/heads/renovate') }}
id: create-comment
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
${{ steps.logs.outputs.content }}
- name: Comment debug
if: '! github.event.pull_request.head.repo.fork'
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref, 'refs/heads/renovate') }}
run: |
echo "Comment ID - ${{ steps.create-comment.outputs.comment-id }}"
1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
":semanticCommitScopeDisabled"
],
"automergeStrategy": "squash",
"automergeType": "branch",
"semanticCommitType": "meta",
"ignorePaths": ["static/"],
"packageRules": [
Expand Down
Loading