Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Oct 11, 2023
1 parent c029133 commit 7564533
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/closerequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: ClosePullRequestAction

on:
pull_request_target:
types: [closed]
branches: [ main ]

jobs:
close:
runs-on: self-hosted
steps:
- name: Initialise environment
run: cat "$GITHUB_WORKSPACE/website/.github-env-$GITHUB_BASE_REF" >> $GITHUB_ENV
- name: Clean up
run: /srv/github-action-scripts/close-pr.sh
44 changes: 44 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PullRequestAction

on:
pull_request_target:
branches: [ main ]

# Cancel in-progress jobs or runs for the current pull request
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

jobs:
process-pull-request:
runs-on: self-hosted
steps:
- name: Fetch git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
path: website

- name: Initialise environment
run: cat "$GITHUB_WORKSPACE/website/.github-env-$GITHUB_BASE_REF" >> $GITHUB_ENV

- name: Initialise status
run: /srv/github-action-scripts/init-deploy-preview.sh
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge test branch
uses: linaro-its/merge-test-branch@v2.6
with:
path: website

- name: Build site
run: cd ${{ github.workspace }}/website && /srv/github-action-scripts/build-astro-site.sh
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check links
run: /srv/github-action-scripts/check-links.sh

- name: Check routing rules
run: /srv/github-action-scripts/test-routing-rules.sh

0 comments on commit 7564533

Please sign in to comment.