From 5edb90fe38c965ec70851404c4fe1aea6676ffa9 Mon Sep 17 00:00:00 2001 From: Mohd Akram Ansari Date: Sat, 15 Apr 2023 01:55:18 -0600 Subject: [PATCH] Added step to give read write permission to action --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b33ff9de..b43b539d 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,9 @@ GitHub Action for automatically syncing LeetCode submissions to a GitHub reposit 3. Add the values from step 1 as [GitHub secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository), e.g. `LEETCODE_CSRF_TOKEN` and `LEETCODE_SESSION`. -4. Add a workflow file with this action under the `.github/workflows` directory, e.g. `sync_leetcode.yml`. +4. Go to REPO > settings > actions and in Workflow Permissions section give actions Read and Write permissions. + +5. Add a workflow file with this action under the `.github/workflows` directory, e.g. `sync_leetcode.yml`. Example workflow file: @@ -54,7 +56,7 @@ GitHub Action for automatically syncing LeetCode submissions to a GitHub reposit destination-folder: my-folder ``` -5. After you've submitted a LeetCode solution, run the workflow by going to the `Actions` tab, clicking the action name, e.g. `Sync Leetcode`, and then clicking `Run workflow`. The workflow will also automatically run once a week by default (can be configured via the `cron` parameter). +6. After you've submitted a LeetCode solution, run the workflow by going to the `Actions` tab, clicking the action name, e.g. `Sync Leetcode`, and then clicking `Run workflow`. The workflow will also automatically run once a week by default (can be configured via the `cron` parameter). ## Inputs