Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
11 changes: 7 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 @@ -8,9 +8,12 @@ on:
- synchronize

jobs:
title-format:
main:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: read
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 }}
21 changes: 11 additions & 10 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,34 @@ 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
- uses: googleapis/release-please-action@v4
id: release
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 }}

token: ${{ secrets.GITHUB_TOKEN }}
release-type: go # just keep a changelog, no version anywhere outside of git tags
- uses: actions/checkout@v4
- 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 remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/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 }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
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"
snakefile: "workflow/Snakefile"
task: "containerize"
```
Loading