Skip to content

feat: Advanced Authorization #332

feat: Advanced Authorization

feat: Advanced Authorization #332

Workflow file for this run

#
# Copyright (c) 2021 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
name: Build PR check
on: [pull_request]
jobs:
jekyll-pr-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- uses: actions/upload-artifact@v3
with:
name: blog-post-source
path: |
_posts
assets/img/
- name: 🔨 install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
format_output: true
custom_opts: '--drafts --future'
- uses: actions/upload-artifact@v3
with:
name: blog-content
path: ./_site
pull-request-info:
runs-on: ubuntu-22.04
steps:
- name: Store PR info
run: |
echo "${{ github.event.number }}" > PR_NUMBER
echo "${{ github.event.pull_request.head.sha }}" > PR_SHA
- uses: actions/upload-artifact@v3
with:
name: pull-request-number
path: PR_NUMBER
- uses: actions/upload-artifact@v3
with:
name: pull-request-sha
path: PR_SHA
- uses: jitterbit/get-changed-files@v1
id: get-files
with:
format: 'json'
- run: |
jq -r '.' <<< '${{ steps.get-files.outputs.all }}' > modified_files.json
- uses: actions/upload-artifact@v3
with:
name: modified-files
path: modified_files.json