Skip to content

Commit ef365f2

Browse files
authored
update workflow versioning and naming (#1166)
1 parent c96d4b4 commit ef365f2

14 files changed

+86
-86
lines changed

.github/workflows/cache-hubval-deps.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Build dependency cache on main branch"
1+
name: "Build Dependency Cache On Main Branch"
22
on:
33
push:
44
branches: [main, master]
@@ -15,15 +15,15 @@ jobs:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919

2020
- uses: r-lib/actions/setup-r@v2
2121
with:
2222
install-r: true
2323
use-public-rspm: true
2424
extra-repositories: 'https://hubverse-org.r-universe.dev'
2525

26-
- name: Update R
26+
- name: "Update R"
2727
run: |
2828
sudo apt-get update
2929

.github/workflows/create-ensemble.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,31 @@ jobs:
1919
env:
2020
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2121
steps:
22-
- name: Generate Installation Token
22+
- name: "Generate Installation Token"
2323
id: get_token
24-
uses: actions/create-github-app-token@v1
24+
uses: actions/create-github-app-token@v2
2525
with:
2626
app-id: ${{ vars.GH_APP_ID }}
2727
private-key: ${{ secrets.GH_APP_KEY }}
2828

29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
3030
- uses: r-lib/actions/setup-r@v2
3131
with:
3232
install-r: true
3333
use-public-rspm: true
3434

35-
- name: Install system dependencies
35+
- name: "Install system dependencies"
3636
run: |
3737
sudo apt-get update
3838
sudo apt-get install -y libcurl4-openssl-dev
3939
40-
- name: Install dependencies
40+
- name: "Install dependencies"
4141
run: |
4242
install.packages(c("fs", "hubEnsembles", "dplyr", "lubridate", "purrr", "yaml", "argparser", "remotes"))
4343
remotes::install_github("hubverse-org/hubData")
4444
shell: Rscript {0}
4545

46-
- name: generate ensemble
46+
- name: "generate ensemble"
4747
run: |
4848
if [ -n "${{ inputs.reference_date }}" ]; then
4949
REF_DATE="${{ inputs.reference_date }}"
@@ -53,15 +53,15 @@ jobs:
5353
echo "Using reference date: $REF_DATE"
5454
Rscript src/get_ensemble.R --reference-date "$REF_DATE" --base-hub-path "."
5555
56-
- name: Commit changes
56+
- name: "Commit changes"
5757
uses: EndBug/add-and-commit@v9
5858
with:
5959
message: "Add CovidHub ensemble forecasts"
6060
default_author: github_actions
6161
push: true
6262
new_branch: add-ensemble
6363

64-
- name: Create pull request
64+
- name: "Create pull request"
6565
id: create_pr
6666
run: |
6767
gh pr create --base main --head add-ensemble --title "Add ensemble forecast" --body "This PR is generated automatically to add a quantile median ensemble forecast."

.github/workflows/create-modeling-round.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Create new modeling round"
1+
name: "Create New Modeling Round"
22

33
on:
44
# schedule:
@@ -16,52 +16,52 @@ jobs:
1616
env:
1717
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
19-
- name: Generate Installation Token
19+
- name: "Generate Installation Token"
2020
id: get_token
21-
uses: actions/create-github-app-token@v1
21+
uses: actions/create-github-app-token@v2
2222
with:
2323
app-id: ${{ vars.GH_APP_ID }}
2424
private-key: ${{ secrets.GH_APP_KEY }}
2525

26-
- name: Checkout
27-
uses: actions/checkout@v4
26+
- name: "Checkout"
27+
uses: actions/checkout@v6
2828
with:
2929
sparse-checkout: |
3030
auxiliary-data/
3131
hub-config/
3232
src/
3333
34-
- name: Setup R
34+
- name: "Setup R"
3535
uses: r-lib/actions/setup-r@v2
3636
with:
3737
install-r: true
3838
use-public-rspm: true
3939

40-
- name: Install system dependencies
40+
- name: "Install system dependencies"
4141
run: |
4242
sudo apt-get update
4343
sudo apt-get install -y libcurl4-openssl-dev
4444
45-
- name: Install dependencies
45+
- name: "Install dependencies"
4646
run: |
4747
install.packages(c("lubridate", "argparser", "remotes", "cli", "hubUtils"))
4848
remotes::install_github("hubverse-org/hubAdmin")
4949
remotes::install_github('cdcgov/forecasttools')
5050
shell: Rscript {0}
5151

52-
- name: create-round-and-update-hub-config
52+
- name: "create-round-and-update-hub-config"
5353
run: |
5454
Rscript src/make_round_config.R
5555
56-
- name: Commit changes
56+
- name: "Commit changes"
5757
uses: EndBug/add-and-commit@v9
5858
with:
5959
message: "Add a new modeling round"
6060
default_author: github_actions
6161
push: true
6262
new_branch: add-round
6363

64-
- name: Create pull request
64+
- name: "Create pull request"
6565
id: create_pr
6666
run: |
6767
gh pr create --base main --head add-round --title "Add a modeling round" --body "This PR is generated automatically."

.github/workflows/dispatch-covidhub-reports.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
if: ${{ github.repository_owner == 'CDCgov' }}
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Generate Installation Token
16+
- name: "Generate Installation Token"
1717
id: get_token
18-
uses: actions/create-github-app-token@v1
18+
uses: actions/create-github-app-token@v2
1919
with:
2020
app-id: ${{ vars.GH_APP_ID }}
2121
private-key: ${{ secrets.GH_APP_KEY }}
2222
owner: CDCgov
2323
repositories: covidhub-reports
2424

25-
- name: Repository Dispatch
25+
- name: "Repository Dispatch"
2626
uses: peter-evans/repository-dispatch@v3
2727
with:
2828
token: ${{ steps.get_token.outputs.token }}

.github/workflows/dispatch-internal-reports.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Send a dispatch to CFA Forecast Hub Internal Reports repo"
1+
name: "Send Dispatch To CFA Forecast Hub Internal Reports"
22

33
on:
44
workflow_dispatch:
@@ -14,16 +14,16 @@ jobs:
1414
if: ${{ github.repository_owner == 'CDCgov' }}
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Generate Installation Token
17+
- name: "Generate Installation Token"
1818
id: generate_token
19-
uses: actions/create-github-app-token@v1
19+
uses: actions/create-github-app-token@v2
2020
with:
2121
app-id: ${{ vars.ENT_GH_APP_ID }}
2222
private-key: ${{ secrets.ENT_GH_APP_KEY }}
2323
owner: cdcent
2424
repositories: cfa-forecast-hub-internal-reports
2525

26-
- name: Repository Dispatch
26+
- name: "Repository Dispatch"
2727
uses: peter-evans/repository-dispatch@v3
2828
with:
2929
token: ${{ steps.generate_token.outputs.token }}

.github/workflows/format-check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [main, master]
66
pull_request:
77

8-
name: "format-check.yaml"
8+
name: "Format Check"
99

1010
permissions: read-all
1111

@@ -14,10 +14,10 @@ jobs:
1414
name: "format-check"
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

19-
- name: Install
19+
- name: "Install"
2020
uses: posit-dev/setup-air@v1
2121

22-
- name: Check
22+
- name: "Check"
2323
run: air format . --check

.github/workflows/hubverse-aws-upload.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Upload hub data to a hubverse-hosted AWS S3 bucket"
1+
name: "Upload Hub Data To Hubverse Hosted AWS S3 Bucket"
22

33
on:
44
push:
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
24+
- name: "Checkout"
25+
uses: actions/checkout@v6
2626

27-
- name: Get hub cloud config
27+
- name: "Get hub cloud config"
2828
# save cloud-related fields from admin config as environment variables
2929
# (jq json parser is installed on Github-hosted runners)
3030
run: |
@@ -35,23 +35,23 @@ jobs:
3535
echo "CLOUD_ENABLED=$cloud_enabled" >> $GITHUB_ENV
3636
echo "CLOUD_STORAGE_LOCATION=$cloud_storage_location" >> $GITHUB_ENV
3737
38-
- name: Configure AWS credentials
38+
- name: "Configure AWS credentials"
3939
# request credentials to assume the hub's AWS role via OpenID Connect
4040
if: env.CLOUD_ENABLED == 'true'
4141
uses: aws-actions/configure-aws-credentials@v4
4242
with:
4343
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT }}:role/${{ env.CLOUD_STORAGE_LOCATION }}
4444
aws-region: us-east-1
4545

46-
- name: Install rclone
46+
- name: "Install rclone"
4747
if: env.CLOUD_ENABLED == 'true'
4848
run: |
4949
# debian version of rclone is outdated and will result in config name errors
5050
# https://github.com/rclone/rclone/issues/6060
5151
curl https://rclone.org/install.sh | sudo bash
5252
rclone version
5353
54-
- name: Sync files to cloud storage
54+
- name: "Sync files to cloud storage"
5555
# sync specified hub directories to S3
5656
# (to exclude a directory, remove it from the hub_directories list below)
5757
if: env.CLOUD_ENABLED == 'true'

.github/workflows/labeler.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
contents: read
1111
pull-requests: write
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414

15-
- name: Apply labels
15+
- name: "Apply labels"
1616
id: label-pr
17-
uses: actions/labeler@v5
17+
uses: actions/labeler@v6
1818
with:
1919
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2020
configuration-path: '.github/labeler.yml'

.github/workflows/merge-pr.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Merge valid PRs"
1+
name: "Merge Valid PRs"
22

33
on:
44
workflow_run:
@@ -14,14 +14,14 @@ jobs:
1414
contents: write
1515
pull-requests: write
1616
steps:
17-
- name: Generate Installation Token
17+
- name: "Generate Installation Token"
1818
id: get_token
19-
uses: actions/create-github-app-token@v1
19+
uses: actions/create-github-app-token@v2
2020
with:
2121
app-id: ${{ vars.GH_APP_ID }}
2222
private-key: ${{ secrets.GH_APP_KEY }}
2323

24-
- name: Set PR Number
24+
- name: "Set PR Number"
2525
env:
2626
GH_TOKEN: ${{ github.token }}
2727
PR_TARGET_REPO: ${{ github.repository }}
@@ -38,21 +38,21 @@ jobs:
3838
echo "PR_NUMBER=${PR_NUMBER}" >> $GITHUB_ENV
3939
echo "PR number from workflow_run event: ${PR_NUMBER}"
4040
41-
- name: Checkout code
42-
uses: actions/checkout@v4
41+
- name: "Checkout code"
42+
uses: actions/checkout@v6
4343

4444
# workflow_run.id identifies the artifact associated with
4545
# the specific validation run that triggered this workflow
46-
- name: Download validation artifact
47-
uses: actions/download-artifact@v4
46+
- name: "Download validation artifact"
47+
uses: actions/download-artifact@v7
4848
with:
4949
name: "validation_status"
5050
path: artifacts_dir
5151
github-token: ${{ secrets.GITHUB_TOKEN }}
5252
repository: ${{ github.repository }}
5353
run-id: ${{ github.event.workflow_run.id }}
5454

55-
- name: approve PR
55+
- name: "approve PR "
5656
run: |
5757
STATUS=$(cat "artifacts_dir/status" | tr -d '[:space:]')
5858
if [ "$STATUS" != "success" ]; then
@@ -64,7 +64,7 @@ jobs:
6464
GH_TOKEN: ${{ steps.get_token.outputs.token }}
6565

6666

67-
- name: Merge for approved PRs
67+
- name: "Merge for approved PRs"
6868
run: gh pr merge --auto --squash $PR_NUMBER
6969
env:
7070
GH_TOKEN: ${{ steps.get_token.outputs.token }}

0 commit comments

Comments
 (0)