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

[DON'T MERGE ME] A git test for readmes #13

Open
wants to merge 2 commits into
base: add-r-cmd-check
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- { os: macos-latest, r: "release" }
- { os: windows-latest, r: "release" }
- { os: ubuntu-latest, r: "devel", http-user-agent: "release" }
- { os: ubuntu-latest, r: "release" }
- { os: ubuntu-latest, r: "oldrel-1" }

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -33,6 +33,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Check Readme changes
- shell: bash {0}
- run: |
# We'll run stuff here to test our tree
# if our file count is 0 or 2, then we're good, otherwise raise an error
readme_changes=$(git diff --name-only 'origin/main' | grep -P '^README.[R]?md' | wc -l)
[[ $readme_changes -eq 0 || $readme_changes -eq 2 ]]

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,4 @@ RECS:
Consumption 2015 Survey Data. \[dataset and documentation\]. December
2018 version.
<https://www.eia.gov/consumption/residential/data/2015/index.php?view=microdata>
a changed!