diff --git a/.github/workflows/conventional-prs.yml b/.github/workflows/conventional-prs.yml index d926109..e063eb4 100644 --- a/.github/workflows/conventional-prs.yml +++ b/.github/workflows/conventional-prs.yml @@ -1,4 +1,4 @@ -name: PR +name: Lint PR on: pull_request_target: types: @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ddeb755..d6086aa 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -3,28 +3,29 @@ 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 @@ -32,4 +33,4 @@ jobs: 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 }} \ No newline at end of file + git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} diff --git a/README.md b/README.md index 05c4ef2..6147426 100644 --- a/README.md +++ b/README.md @@ -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" ```