Skip to content

Commit

Permalink
actions syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilsonsco committed Sep 13, 2024
1 parent 9ed2074 commit 8a0efe6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/check-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches:
- main
- develop
branches: [main, develop]

name: R-CMD-check

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches:
- main
- develop
branches: [main, develop]

name: lint

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches:
- main
- develop
branches: [main, develop]

name: render-readme

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches:
- main
- develop
branches: [main, develop]

name: Style

Expand Down Expand Up @@ -70,9 +68,11 @@ jobs:
then
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git checkout ${{ github.ref_name }} # Explicitly check out the triggering branch
git checkout ${{ github.event.pull_request.head.ref || github.ref_name }}
git commit ${FILES_TO_COMMIT[*]} -m "Style code (GHA)"
git pull --ff-only
git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }}
else
echo "No changes to commit."
fi

0 comments on commit 8a0efe6

Please sign in to comment.