Tfreebern/updates for digitial transformation #325
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continous Integration | |
on: | |
pull_request: | |
permissions: | |
id-token: write | |
pull-requests: write | |
contents: write | |
repository-projects: write | |
jobs: | |
# Build job | |
build: | |
name: 'Build 📦' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 | |
with: | |
ruby-version: '3.0' # Not needed with a .ruby-version file | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
cache-version: 0 # Increment this number if you need to re-download cached gems | |
- name: Build with Jekyll | |
# Outputs to the './_site' directory by default | |
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | |
env: | |
JEKYLL_ENV: production | |
dependabot-automation: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
timeout-minutes: 13 | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Approve & enable auto-merge for Dependabot PR | |
run: | | |
gh pr review --approve "$PR_URL" | |
gh pr edit "$PR_URL" -t "(auto merged) $PR_TITLE" | |
gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |