From bc05db44a0bdea129b5a81b67d68d76df15bdd60 Mon Sep 17 00:00:00 2001 From: Kelvin Tan Date: Tue, 2 Jul 2024 12:16:00 +0800 Subject: [PATCH] fix --- .github/workflows/discourse-plugin.yml | 12 ------------ lib/deprecation_collector/list.rb | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/discourse-plugin.yml b/.github/workflows/discourse-plugin.yml index 4957817..6927886 100644 --- a/.github/workflows/discourse-plugin.yml +++ b/.github/workflows/discourse-plugin.yml @@ -5,17 +5,5 @@ on: workflow_dispatch: jobs: - prepare-deprecation-ids-file: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Create empty deprecation-ids.yml if it doesn't exist - run: touch lib/deprecation_collector/deprecation-ids.yml -# - name: Upload deprecation-ids.yml -# uses: actions/upload-artifact@v4 -# with: -# name: deprecation-ids -# path: lib/deprecation_collector/deprecation-ids.yml ci: - needs: prepare-deprecation-ids-file uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1 diff --git a/lib/deprecation_collector/list.rb b/lib/deprecation_collector/list.rb index de60ea3..2f97829 100644 --- a/lib/deprecation_collector/list.rb +++ b/lib/deprecation_collector/list.rb @@ -2,7 +2,7 @@ require "yaml" module DeprecationCollector - DEPRECATION_IDS_FILE = "lib/deprecation_collector/deprecation-ids.yml" + DEPRECATION_IDS_FILE = File.expand("./deprecation-ids.yml", __FILE__) deprecations = YAML.load_file(DEPRECATION_IDS_FILE) List =