Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Actions: change PHAR building to reusable workflow #751

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 3, 2024

Description

The workflows currently contain two jobs which build the PHAR files. In PHPCS 4.0, a third job will be added (in relation to 530), which will also need to build the PHAR files.

This means that any changes to the steps in these jobs would then have to be made in three places.

With this in mind, it makes sense to change the PHAR building to a reusable workflow, which can then be used by all three jobs. With this change, any changes to the steps of the job will only need to be made in one place.

This commit makes it so.

Suggested changelog entry

N/A

Related issues/external references

Note: this PR should be merged just before the next release to verify that the attestation handling on tagging works correctly. This can't really be tested, other than when an actual tag is being created.

Closes #759

The workflows currently contain two jobs which build the PHAR files. In PHPCS 4.0, a third job will be added (in relation to 530), which will also need to build the PHAR files.

This means that any changes to the steps in these jobs would then have to be made in three places.

With this in mind, it makes sense to change the PHAR building to a reusable workflow, which can then be used by all three jobs.
With this change, any changes to the steps of the job will only need to be made in one place.

This commit makes it so.
@jrfnl jrfnl added this to the 3.11.2 milestone Dec 3, 2024
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 1 to 2.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](actions/attest-build-provenance@v1...v2)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@jrfnl jrfnl merged commit 799e293 into master Dec 11, 2024
70 checks passed
@jrfnl jrfnl deleted the feature/ghactions-make-phar-building-reusable branch December 11, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants