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

replace custom last-successful action by inline curl job #6

Closed
rhaas80 opened this issue Jun 15, 2022 · 2 comments
Closed

replace custom last-successful action by inline curl job #6

rhaas80 opened this issue Jun 15, 2022 · 2 comments

Comments

@rhaas80
Copy link
Owner

rhaas80 commented Jun 15, 2022

Instead of using customized last-successful action, embed the required json parsing into action yaml file to reduce external dependencies:

curl -s https://api.github.com/repos/rhaas80/einsteintoolkit/actions/runs | jq 'first(.workflow_runs[] | select(.path==".github/workflows/docs.yml", .status=="success")) | .head_commit.id' | sed 's/\"//g'

gives the required last successful git hash.

This is basically the same as what the javascript in https://github.com/rhaas80/last-successful-commit-action/blob/master/dist/index.js does.

@rhaas80
Copy link
Owner Author

rhaas80 commented Jul 21, 2022

actually do this via a repository_dispatch action option. Something like in carpetx-tests: https://github.com/EinsteinToolkit/carpetx-tests/blob/7e95b32e5b558d125c288b3271193db7b19dcdfc/.github/workflows/CI.yml#L8 this will avoid confusion between this programmatic dispatch and a user's manual dispatch

@rhaas80
Copy link
Owner Author

rhaas80 commented Oct 4, 2022

EinsteinToolkit/tests#5

@rhaas80 rhaas80 closed this as completed Oct 4, 2022
github-actions bot pushed a commit to Hrishikesh-Kalyanaraman/einsteintoolkit that referenced this issue Jun 20, 2024
Submodule repos/Proca d24ddf8..93f7a48:
  > Merged in Canuda_Proca_Fix_TwoPunctures_KerrProca (pull request rhaas80#6)
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

No branches or pull requests

1 participant