Skip to content

Commit

Permalink
Add regenerate push to update branches
Browse files Browse the repository at this point in the history
  • Loading branch information
alecbcs committed Jul 19, 2024
1 parent bd26ce4 commit 4214a3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
permissions:
packages: write

name:
steps:
- name: Remove pre-installed apps to make space for build
run: |
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,28 @@ on:
workflow_call:

jobs:
generate-outputs:
re-generate:
runs-on: ubuntu-latest
name: Generate ouputs

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ github.head_ref }}
fetch-depth: 2

- name: Run
- name: Re-generate Outputs from Tutorial Scripts
run: |
chmod -R a+w outputs
make -C outputs -j $(nproc) DOCKER_RUN_OPTS="-e COLUMNS=94 -e LINES=24"
- name: Create pull request
run: gh pr create -B main -H regenerate-outputs --title "Regenerate outputs" --body "Automated update"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Modified Files to Branch
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Update generated outputs"
git push

0 comments on commit 4214a3b

Please sign in to comment.