Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ASFHyP3/actions
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.0
Choose a base ref
...
head repository: ASFHyP3/actions
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.14.0
Choose a head ref
Loading
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -11,4 +11,4 @@ on:
- develop
jobs:
call-changelog-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.13.2
2 changes: 1 addition & 1 deletion .github/workflows/create-jira-issue.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ on:

jobs:
call-create-jira-issue-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.13.2
secrets:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
2 changes: 1 addition & 1 deletion .github/workflows/labeled-pr.yml
Original file line number Diff line number Diff line change
@@ -12,4 +12,4 @@ on:

jobs:
call-labeled-pr-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.13.2
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ on:

jobs:
call-release-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.13.2
with:
release_prefix: Actions
secrets:
31 changes: 0 additions & 31 deletions .github/workflows/reusable-flake8.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/reusable-mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
workflow_call:

jobs:
check-with-mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml

- name: Check with MyPy
shell: bash -l {0}
run: |
mkdir .mypy_cache && mypy --install-types --ignore-missing-imports --non-interactive --pretty .
4 changes: 2 additions & 2 deletions .github/workflows/reusable-release-checklist-comment.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4

- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
uses: thollander/actions-comment-pull-request@v3
with:
message: |
### Developer checklist
@@ -48,4 +48,4 @@ jobs:
- [ ] Have the changes been verified in the test deployment?
${{ inputs.additional_reviewer_items }}
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }}
github-token: ${{ secrets.USER_TOKEN }}
24 changes: 12 additions & 12 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
@@ -43,16 +43,16 @@ jobs:
git merge --ff-only origin/${{ inputs.release_branch }}
git push
- name: Open PR to bring release back to develop
- name: On failure, open PR to bring release back to develop
if: ${{ failure() }}
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ inputs.release_branch }}
destination_branch: ${{ inputs.develop_branch }}
pr_title: Pulling ${{ github.ref }} into ${{ inputs.develop_branch }}
pr_body: Fast-forward of ${{ inputs.release_branch }} to ${{ inputs.develop_branch }} failed!
pr_assignee: ${{ github.actor }}
pr_label: ${{ inputs.sync_pr_label }}
pr_draft: false
pr_allow_empty: true
github_token: ${{ secrets.USER_TOKEN }}
env:
PR_TITLE: Pulling ${{ github.ref }} into ${{ inputs.develop_branch }}
PR_BODY: Fast-forward of ${{ inputs.release_branch }} to ${{ inputs.develop_branch }} failed!
GH_TOKEN: ${{ secrets.USER_TOKEN }}
run: |
gh pr create --title "${PR_TITLE}" \
--body "${PR_BODY}" \
--assignee ${{ github.actor }} \
--label ${{ inputs.sync_pr_label }} \
--head ${{ inputs.release_branch }} \
--base ${{ inputs.develop_branch }}
8 changes: 4 additions & 4 deletions .github/workflows/reusable-ruff.yml
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ruff
- name: Ruff linting check
run: ruff check --output-format=github .
- name: ruff check
run: ruff check --output-format=github || (echo 'Run `ruff check --fix` to automatically fix errors where possible.' && exit 1)

- name: Ruff format check
run: ruff format --diff .
- name: ruff format
run: ruff format --diff || (echo 'Run `ruff format` to automatically re-format.' && exit 1)
2 changes: 1 addition & 1 deletion .github/workflows/reusable-secrets-analysis.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:
fetch-depth: 0

- name: Secret Scanning
uses: trufflesecurity/trufflehog@v3.82.6
uses: trufflesecurity/trufflehog@v3.86.1
with:
base: main
extra_args: --only-verified
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -4,4 +4,4 @@ on: push

jobs:
call-secrets-analysis-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.13.2
2 changes: 1 addition & 1 deletion .github/workflows/tag-version.yml
Original file line number Diff line number Diff line change
@@ -7,6 +7,6 @@ on:

jobs:
call-bump-version-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.13.2
secrets:
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}
2 changes: 1 addition & 1 deletion .github/workflows/update-examples.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ on:

jobs:
call-git-object-name-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-git-object-name.yml@v0.11.2
uses: ASFHyP3/actions/.github/workflows/reusable-git-object-name.yml@v0.13.2

upate_actions_examples:
needs: call-git-object-name-workflow
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,33 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.14.0]

### Added
- [`reusable-mypy`](.github/workflows/reusable-mypy.yml) reusable workflow for performing static type checking with [mypy](https://github.com/python/mypy).
- [`reusable-ruff`](.github/workflows/reusable-ruff.yml) now prints the suggested commands for automatically fixing errors.

### Removed
- `reusable-flake8.yml` has been removed. We recommend [`reusable-ruff`](.github/workflows/reusable-ruff.yml) instead.

## [0.13.2]

### Fixed
- Fix a bug in which [`reusable-ruff`](.github/workflows/reusable-ruff.yml) errors did not cause the action to fail.

## [0.13.1]

### Changed
- Reverts the addition of `--select I` to [`reusable-ruff`](.github/workflows/reusable-ruff.yml), as this option is already included in the recommended `pyproject.toml` settings given in the README.

## [0.13.0]

### Changed
- The [`reusable-ruff`](.github/workflows/reusable-ruff.yml) action now checks for import order.

### Fixed
- The [`reusable-release-action`](.github/workflows/reusable-release.yml) now uses the `gh` CLI instead of the archived `repo-sync/pull-request` action.

## [0.12.0]
### Added
- Releases of ASFHyP3/actions will now trigger updates to the ASFHyP3/hyp3-cookiecutter
Loading