Skip to content

build(deps): bump rexml from 3.2.6 to 3.2.8 (#87) #223

build(deps): bump rexml from 3.2.6 to 3.2.8 (#87)

build(deps): bump rexml from 3.2.6 to 3.2.8 (#87) #223

Workflow file for this run

name: Build, Test, and Release
on:
push:
branches:
- 'main'
tags:
- 'v*' # For v1.0, v0.1.0, etc
pull_request:
branches:
- 'main'
workflow_dispatch:
concurrency:
# Allow concurrent run for main, MR, and tag
# Disallow concurrent runs on same MRs, tags, and main (triggered by dispatch, schedule, or push)
group: ${{ format('{0}-{1}', github.job, github.ref) }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.7'
bundler-cache: true
- name: lint with rubocop
run: bundle exec rubocop
test:
needs:
- lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.7'
bundler-cache: true
- name: test with rspec
run: bundle exec rspec
release:
needs:
- lint
- test
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
steps:
- name: Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
name: ${{ format('Release {0}', github.ref_name) }}
prerelease: ${{ contains(github.ref_name, '-rc-') }}
draft: true
notify:
name: Send job complete notification
runs-on: ubuntu-latest
needs:
- lint
- test
- release
if: always() && (github.ref_type == 'tag' || github.ref_name == 'main')
steps:
- name: Notify on success
if: needs.lint.result == 'success' && needs.test.result == 'success' && needs.release.result == 'success'
uses: appleboy/discord-action@v1.0.0
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#800000"
username: "jekyll-post-image-generator Release Bot"
message: >
An jekyll-post-image-generator release was deployed:
https://github.com/sebs-scholarship/jekyll-post-image-generator/releases/tag/${{ github.ref_name }}
- name: Notify on failure
if: needs.lint.result == 'failure' || needs.test.result == 'failure' || needs.release.result == 'failure'
uses: appleboy/discord-action@v1.0.0
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#800000"
username: "jekyll-post-image-generator Release Bot"
message: >
An jekyll-post-image-generator build failed:
https://github.com/sebs-scholarship/jekyll-post-image-generator/actions/runs/${{ github.run_id }}