Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jun 4, 2024
1 parent a491575 commit d8f8a33
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- main
paths:
- "lib/jekyll-last-modified-at/version.rb"
pull_request_target:
types:
- closed

jobs:
ruby:
Expand All @@ -15,5 +18,7 @@ jobs:
rubygems_api_key: ${{ secrets.RUBYGEMS_API_BOT_KEY }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
gem_name: jekyll-last-modified-at
gem_name: html-proofer
version_filepath: lib/jekyll-last-modified-at/version.rb
prepare: ${{ github.event_name == 'push' }}
release: ${{ github.event_name == 'workflow_dispatch' || ((github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release'))) }}
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- if: "${{ contains(github.event.pull_request.title, '[skip test]') }}"
name: Skip test
shell: bash
run: |
echo "Skipping test workflow because commit message contains `[skip test]`"
exit 0
- uses: actions/checkout@v4

- name: Set up Ruby
Expand Down

0 comments on commit d8f8a33

Please sign in to comment.