Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Initialize repo
Browse files Browse the repository at this point in the history
  • Loading branch information
realHenningLorenzen committed Jan 22, 2024
1 parent 983b367 commit a8b0af3
Show file tree
Hide file tree
Showing 31 changed files with 142 additions and 142 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The package maintainer also reserves the right to adjust the criteria to recogni
If you have further questions regarding the contribution guidelines, please contact the package/repository maintainer.

<!-- urls -->
[docs]: https://insightsengineering.github.io/r.pkg.template/index.html
[articles]: https://insightsengineering.github.io/r.pkg.template/main/articles/index.html
[license]: https://insightsengineering.github.io/r.pkg.template/main/LICENSE-text.html
[insights]: https://github.com/insightsengineering/r.pkg.template/pulse
[docs]: https://insightsengineering.github.io/coursera.cicd.lab/index.html
[articles]: https://insightsengineering.github.io/coursera.cicd.lab/main/articles/index.html
[license]: https://insightsengineering.github.io/coursera.cicd.lab/main/LICENSE-text.html
[insights]: https://github.com/insightsengineering/coursera.cicd.lab/pulse
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ body:
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://insightsengineering.github.io/r.pkg.template/CODE_OF_CONDUCT.html)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://realHenningLorenzen.github.io/coursera.cicd.lab/CODE_OF_CONDUCT.html)
options:
- label: I agree to follow this project's Code of Conduct.
required: true
- type: checkboxes
id: contributor-guidelines
attributes:
label: Contribution Guidelines
description: By submitting this issue, you agree to follow our [Contribution Guidelines](https://insightsengineering.github.io/r.pkg.template/CONTRIBUTING.html)
description: By submitting this issue, you agree to follow our [Contribution Guidelines](https://realHenningLorenzen.github.io/coursera.cicd.lab/CONTRIBUTING.html)
options:
- label: I agree to follow this project's Contribution Guidelines.
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ body:
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://insightsengineering.github.io/r.pkg.template/CODE_OF_CONDUCT.html)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://realHenningLorenzen.github.io/coursera.cicd.lab/CODE_OF_CONDUCT.html)
options:
- label: I agree to follow this project's Code of Conduct.
required: true
- type: checkboxes
id: contributor-guidelines
attributes:
label: Contribution Guidelines
description: By submitting this issue, you agree to follow our [Contribution Guidelines](https://insightsengineering.github.io/r.pkg.template/CONTRIBUTING.html)
description: By submitting this issue, you agree to follow our [Contribution Guidelines](https://realHenningLorenzen.github.io/coursera.cicd.lab/CONTRIBUTING.html)
options:
- label: I agree to follow this project's Contribution Guidelines.
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ body:
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://insightsengineering.github.io/r.pkg.template/CODE_OF_CONDUCT.html)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://realHenningLorenzen.github.io/coursera.cicd.lab/CODE_OF_CONDUCT.html)
options:
- label: I agree to follow this project's Code of Conduct.
required: true
- type: checkboxes
id: contributor-guidelines
attributes:
label: Contribution Guidelines
description: By submitting this issue, you agree to follow our [Contribution Guidelines](https://insightsengineering.github.io/r.pkg.template/CONTRIBUTING.html)
description: By submitting this issue, you agree to follow our [Contribution Guidelines](https://realHenningLorenzen.github.io/coursera.cicd.lab/CONTRIBUTING.html)
options:
- label: I agree to follow this project's Contribution Guidelines.
required: true
10 changes: 5 additions & 5 deletions .github/workflows/bioccheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
workflow_dispatch:
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: |
Github token with read access to repositories, required for staged.dependencies installation
required: false
Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/branch-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Branch Cleanup 🍃
on:
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: |
Github token with write access to repository
required: false
Expand All @@ -27,12 +27,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
workflow_dispatch:
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: |
Github token with read access to repositories, required for staged.dependencies installation
required: false
Expand Down Expand Up @@ -199,12 +199,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down Expand Up @@ -773,12 +773,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: R CMD Check 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
Expand All @@ -32,7 +32,7 @@ jobs:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linter:
if: github.event_name == 'pull_request'
name: SuperLinter 🦸‍♀️
Expand All @@ -41,7 +41,7 @@ jobs:
name: Roxygen 🅾
uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
auto-update: true
gitleaks:
Expand All @@ -60,7 +60,7 @@ jobs:
if: github.event_name == 'push'
uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
version:
name: Version Check 🏁
uses: insightsengineering/r.pkg.template/.github/workflows/version.yaml@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
name: Pkgdown Docs 📚
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
workflow_dispatch:
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: |
Github token with read access to repositories, required for staged.dependencies installation
required: false
Expand Down Expand Up @@ -132,12 +132,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-release.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
name: Version Bump 🤜🤛
uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
vbump-after-release: true
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "v*"
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: |
Github token with write access to the repository
required: false
Expand Down Expand Up @@ -39,12 +39,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip-r-cmd-check: true
skip-r-cmd-install: true
Expand All @@ -22,26 +22,26 @@ jobs:
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
default-landing-page: latest-tag
validation:
name: R Package Validation report 📃
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/validation.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Create release 🎉
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
r-cmd:
name: R CMD Check 🧬
needs: [release, docs]
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
Expand All @@ -51,4 +51,4 @@ jobs:
needs: [release, docs]
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/roxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on:
type: string
default: "."
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: |
Github token with read access to repositories, required for staged.dependencies installation
required: false
Expand All @@ -65,12 +65,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/verdepcheck.yaml@main
name: Dependency Test - ${{ matrix.test-strategy }} 🔢
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GCHAT_WEBHOOK: ${{ secrets.GCHAT_WEBHOOK }}
with:
strategy: ${{ matrix.test-strategy }}
Expand All @@ -25,4 +25,4 @@ jobs:
name: Branch Cleanup 🧹
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
workflow_dispatch:
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
GITHUB_TOKEN:
description: Github token with write access to the repo
required: false
inputs:
Expand Down Expand Up @@ -49,12 +49,12 @@ jobs:
- name: Setup token 🔑
id: github-token
run: |
if [ "${{ secrets.REPO_GITHUB_TOKEN }}" == "" ]; then
echo "REPO_GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
if [ "${{ secrets.GITHUB_TOKEN }}" == "" ]; then
echo "GITHUB_TOKEN is empty. Substituting it with GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
else
echo "Using REPO_GITHUB_TOKEN."
echo "token=${{ secrets.REPO_GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
echo "Using GITHUB_TOKEN."
echo "token=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
fi
shell: bash

Expand Down
Loading

0 comments on commit a8b0af3

Please sign in to comment.