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

[CSR-1806] feat: allow template for the previous-ci-build-id input #14

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

vCaisim
Copy link
Contributor

@vCaisim vCaisim commented Nov 26, 2024

Changes:

  • allow setting previous-ci-build-id input value as a template (using lodash .template)
  • add unit tests

The previous-ci-build-id action input is passed to currents api get-run's command --ci-build-id option and is used to find the previous run information.

Manual Tests:

Runs:
first - https://app.currents.dev/run/99298a1fa4111571
image

retry - https://app.currents.dev/run/94f2219906ed5297
image

Tested using a copy of the playwright-last-failed action with the changes applied - https://github.com/vCaisim/playwright-last-failed

The workflow with template value for previous-ci-build-id - https://github.com/vCaisim/playwright-gh-actions-demo/blob/b56714a0abfa154bc8a7cbb030d33d1ef46fa9fa/.github/workflows/rerun-action-or8n.yml#L44

The actions:
https://github.com/vCaisim/playwright-gh-actions-demo/actions/runs/12069399850

Copy link

@vCaisim vCaisim marked this pull request as ready for review November 26, 2024 15:31
@vCaisim vCaisim force-pushed the feat/prev-ci-build-id-template branch from 83ba956 to 066f03c Compare November 29, 2024 12:16
fix: update dist

fix: format workflow

fix: lint

fix: use lodash .template to parse previous-ci-build-id input value

fix: lint

fix: lint

fix: unit-tests.yml
@vCaisim vCaisim force-pushed the feat/prev-ci-build-id-template branch from 066f03c to 0fc6710 Compare November 29, 2024 13:04
@agoldis agoldis requested a review from twk3 November 29, 2024 18:55
@twk3 twk3 merged commit 9bb14b8 into main Nov 29, 2024
25 checks passed
@twk3 twk3 deleted the feat/prev-ci-build-id-template branch November 29, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants