Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/conventional-prs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR
name: Lint PR
on:
pull_request_target:
types:
Expand All @@ -7,10 +7,14 @@ on:
- edited
- synchronize

permissions:
pull-requests: read

Comment thread
dlaehnemann marked this conversation as resolved.
Outdated
jobs:
title-format:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.4.0
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 8 additions & 23 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,18 @@ on:
branches:
- master

permissions:
contents: write
pull-requests: write
issues: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:

- uses: GoogleCloudPlatform/release-please-action@v2
id: release
- uses: googleapis/release-please-action@v4
with:
release-type: go # just no update of version anywhere needed
package-name: ${{env.ACTION_NAME}}

- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}

- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
Comment thread
dlaehnemann marked this conversation as resolved.
token: ${{ secrets.GITHUB_TOKEN }}
release-type: go # just keep a changelog, no version anywhere outside of git tags
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ Whether used disk space shall be printed if Snakemake fails. Can be either `true

```yaml
- name: Linting
uses: snakemake/snakemake-github-action@v1
uses: snakemake/snakemake-github-action@v2
with:
directory: '.test'
snakefile: 'workflow/Snakefile'
args: '--lint'
directory: ".test"
snakefile: "workflow/Snakefile"
args: "--lint"

- name: Testing
uses: snakemake/snakemake-github-action@v2
with:
directory: '.test'
snakefile: 'workflow/Snakefile'
args: '--cores 1 --sdm conda --conda-cleanup-pkgs cache'
stagein: '' # additional preliminary commands to run (can be multiline)
directory: ".test"
snakefile: "workflow/Snakefile"
args: "--cores 1 --sdm conda --conda-cleanup-pkgs cache"
stagein: "" # additional preliminary commands to run (can be multiline)
show-disk-usage-on-error: true


- name: Create container file
uses: snakemake/snakemake-github-action@v2
with:
snakefile: 'workflow/Snakefile'
task: 'containerize'
directory: ".test"
Comment thread
dlaehnemann marked this conversation as resolved.
snakefile: "workflow/Snakefile"
task: "containerize"
```
Loading