Skip to content

Commit

Permalink
Merge pull request #640 from PreTeXtBook:action
Browse files Browse the repository at this point in the history
update actions to push to protected branches
  • Loading branch information
oscarlevin authored Nov 10, 2023
2 parents 056a006 + a6bfe49 commit a512e98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ jobs:
# Stage the file, commit and push
git add pyproject.toml
git commit -m "bump version to next patch level for nightly releases"
git push origin ${{ inputs.branch }}
- name: Push to protected main branch
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUSH_CODESPACES }}
branch: ${{ inputs.branch }}

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/update_core_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ jobs:
# Stage the file, commit and push
git add pretext/__init__.py
git commit -m "update to latest core commit"
git push origin ${{ inputs.branch }}
- name: Push to protected main branch
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUSH_CODESPACES }}
branch: ${{ inputs.branch }}

0 comments on commit a512e98

Please sign in to comment.