Skip to content

Commit 24dc1ec

Browse files
author
markzegarelli
authored
Merge pull request #2 from segmentio/repo-sync
repo sync
2 parents a11b172 + 3728763 commit 24dc1ec

File tree

3 files changed

+36
-27
lines changed

3 files changed

+36
-27
lines changed

.github/workflows/check-links.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,34 @@ on:
1212

1313
jobs:
1414
checklinks:
15+
if: github.repository == 'segmentio/segment-docs-private'
1516
name: Linux
1617
runs-on: ubuntu-latest
1718
strategy:
1819
fail-fast: false
19-
steps:
20-
- uses: actions/checkout@v2
21-
- name: Ruby
22-
uses: ruby/setup-ruby@v1
23-
with:
24-
ruby-version: 2.6 # Not needed with a .ruby-version file
25-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26-
- name: Yarn install
27-
run: yarn install
28-
- name: Build jekyll website with
29-
run: bundle exec jekyll build
30-
- name: Check for broken links
31-
run: |
32-
yarn run hyperlink ./_site/index.html --canonicalroot https://segment.com/docs -i -r --skip 0.0.0.0 | yarn run tap-spot > output.md
33-
continue-on-error: true
34-
- name: Archive log links
35-
uses: actions/upload-artifact@v1
36-
with:
37-
name: links-check.log
38-
path: output.md
39-
- name: Create Issue From File
40-
uses: peter-evans/create-issue-from-file@v2
41-
with:
42-
title: Link Checker Report
43-
content-filepath: output.md
44-
labels: report, automated issue
20+
# steps:
21+
# - uses: actions/checkout@v2
22+
# - name: Ruby
23+
# uses: ruby/setup-ruby@v1
24+
# with:
25+
# ruby-version: 2.6 # Not needed with a .ruby-version file
26+
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27+
# - name: Yarn install
28+
# run: yarn install
29+
# - name: Build jekyll website with
30+
# run: bundle exec jekyll build
31+
# - name: Check for broken links
32+
# run: |
33+
# yarn run hyperlink ./_site/index.html --canonicalroot https://segment.com/docs -i -r --skip 0.0.0.0 | yarn run tap-spot > output.md
34+
# continue-on-error: true
35+
# - name: Archive log links
36+
# uses: actions/upload-artifact@v1
37+
# with:
38+
# name: links-check.log
39+
# path: output.md
40+
# - name: Create Issue From File
41+
# uses: peter-evans/create-issue-from-file@v2
42+
# with:
43+
# title: Link Checker Report
44+
# content-filepath: output.md
45+
# labels: report, automated issue

.github/workflows/repo-sync.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,11 @@ jobs:
4949
with:
5050
github-token: ${{ secrets.GITHUB_TOKEN }}
5151
number: ${{ steps.find-pull-request.outputs.number }}
52+
53+
- name: Merge Pull Request
54+
if: ${{ steps.find-pull-request.outputs.number }}
55+
uses: juliangruber/merge-pull-request-action@v1
56+
with:
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
number: ${{ steps.find-pull-request.outputs.number }}
59+
method: merge

.github/workflows/unallowed-contributions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222

2323
jobs:
2424
triage:
25-
if: github.repository == 'github/docs' && github.event.pull_request.user.login != 'markzegarelli'
25+
if: github.repository == 'segmentio/segment-docs' && github.event.pull_request.user.login != 'markzegarelli'
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Get files changed

0 commit comments

Comments
 (0)