From 49b9b83242c1be75a54ca3d2566f16012f02c998 Mon Sep 17 00:00:00 2001 From: ibrahimjaved12 Date: Tue, 8 Oct 2024 14:45:30 +0500 Subject: [PATCH 1/3] Add target --- .github/workflows/weekly_csv_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/weekly_csv_release.yml b/.github/workflows/weekly_csv_release.yml index 8f0fa38..55d1a75 100644 --- a/.github/workflows/weekly_csv_release.yml +++ b/.github/workflows/weekly_csv_release.yml @@ -88,6 +88,6 @@ jobs: then gh release delete $LATEST_RELEASE_NAME fi - gh release create $LATEST_RELEASE_NAME ./private/output/ocw_oer_export.csv -t "Latest Release" -n "This release was created for CSV weekly output. This release contains the most recent CSV. Please get the CSV file from the Assets listed below." --latest + gh release create $LATEST_RELEASE_NAME ./private/output/ocw_oer_export.csv -t "Latest Release" -n "This release was created for CSV weekly output. This release contains the most recent CSV. Please get the CSV file from the Assets listed below." --latest --target $GITHUB_SHA env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 949857bae637186ee1ef194f98ba2e3c6474e4fa Mon Sep 17 00:00:00 2001 From: ibrahimjaved12 Date: Tue, 8 Oct 2024 15:00:35 +0500 Subject: [PATCH 2/3] Test stuff --- .github/workflows/weekly_csv_release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/weekly_csv_release.yml b/.github/workflows/weekly_csv_release.yml index 55d1a75..9715aee 100644 --- a/.github/workflows/weekly_csv_release.yml +++ b/.github/workflows/weekly_csv_release.yml @@ -3,8 +3,10 @@ on: push: branches: - main - schedule: - - cron: '0 10 * * 1' # Every Monday at 10AM + pull_request: + # schedule: + # - cron: '0 10 * * 1' # Every Monday at 10AM + jobs: generate_and_release_csv: From 1e17c829a73e24c2434d9532c2cd0dee723655d0 Mon Sep 17 00:00:00 2001 From: ibrahimjaved12 Date: Tue, 8 Oct 2024 15:07:29 +0500 Subject: [PATCH 3/3] Test stuff --- .github/workflows/weekly_csv_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/weekly_csv_release.yml b/.github/workflows/weekly_csv_release.yml index 9715aee..c8091bc 100644 --- a/.github/workflows/weekly_csv_release.yml +++ b/.github/workflows/weekly_csv_release.yml @@ -6,6 +6,7 @@ on: pull_request: # schedule: # - cron: '0 10 * * 1' # Every Monday at 10AM + #adding random comment jobs: