Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Nov 22, 2023
1 parent a2f623c commit 566d83e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on:
pull_request_target:
branches: [main]

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

jobs:
process-pull-request:
runs-on: self-hosted
steps:
- name: Cancel previous runs
uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Fetch git repository
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -51,13 +51,3 @@ jobs:
PR_NUMBER=$(jq -r ".pull_request.number" $GITHUB_EVENT_PATH)
BUILDDIR="$AWS_STATIC_SITE_URL-$PR_NUMBER"
echo "TEST_URL=$BUILDDIR.ghactions.linaro.org" >> $GITHUB_ENV
- run: env

# - name: Run Pa11y scan
# uses: benc-uk/workflow-dispatch@v1
# with:
# workflow: CheckSite
# repo: linaro-its/pa11y-ci-container
# token: ${{ secrets.BUILD_REPO_TOKEN }}
# inputs: '{ "uri": "${{ env.SITE_URL }}" }'
19 changes: 5 additions & 14 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
branches: [main]
workflow_dispatch:

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

jobs:
process-push:
runs-on: self-hosted
steps:
- name: Cancel previous runs
uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Fetch git repository
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -60,12 +60,3 @@ jobs:

- name: Invalidate CloudFront cache
run: /srv/github-action-scripts/invalidate-cloudfront.sh

- name: Run Pa11y scan
uses: benc-uk/workflow-dispatch@v1
with:
ref: master
workflow: CheckSite
repo: linaro-its/pa11y-ci-container
token: ${{ secrets.BUILD_REPO_TOKEN }}
inputs: '{ "uri": "${{ env.SITE_URL }}" }'

0 comments on commit 566d83e

Please sign in to comment.