update chronicle #177
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: update chronicle | |
| # Trigger the workflow when the validation action finished | |
| on: | |
| workflow_run: | |
| workflows: ["trident validate"] | |
| types: | |
| - completed | |
| branches: | |
| - "master" | |
| jobs: | |
| chronicle: | |
| name: update chronicle file | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install trident | |
| run: | | |
| wget https://github.com/poseidon-framework/poseidon-hs/releases/latest/download/trident-Linux | |
| chmod +x trident-Linux | |
| - name: Clone data repo | |
| uses: actions/checkout@v3 | |
| with: | |
| path: data | |
| - name: Update file | |
| run: ./trident-Linux chronicle -d data -u data/archive.chron --logMode VerboseLog | |
| # The `pushurl` set in the .lfsconfig requires an ssh setup, which is not present here, | |
| # so we hide the value for the GitHub Action | |
| - name: Override LFS pushurl | |
| run: git config lfs.pushurl "" | |
| - name: Create pull request with updates | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| path: data | |
| commit-message: Update of chronicle file | |
| branch: chronicleUpdates | |
| delete-branch: true | |
| title: '[Automatic PR] Update chronicle file' | |
| body: | | |
| Please check if the changes are as expected. | |
| reviewers: nevrome |