From b3d4e0a5b864ee859ac628151857d6b75e1da0d1 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Tue, 1 Nov 2022 20:24:17 +0100 Subject: [PATCH] final --- .github/workflows/renew.yml | 10 +++------- renew.rb | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/renew.yml b/.github/workflows/renew.yml index dadf2ffbb..6a951745a 100644 --- a/.github/workflows/renew.yml +++ b/.github/workflows/renew.yml @@ -1,12 +1,8 @@ name: Renew facebook token -on: [pull_request] -#on: -# push: -# branch: -# - main -# schedule: -# - cron: "0 0 * * *" +on: + schedule: + - cron: "0 0 1 * *" permissions: actions: read diff --git a/renew.rb b/renew.rb index 95a98a374..a578d1277 100644 --- a/renew.rb +++ b/renew.rb @@ -42,7 +42,7 @@ def create_box(public_key) repo = client.repo 'atelierdesmedias/atelierdesmedias.github.io' -secret = { name: 'BOBO', value: 'bonbon' } +secret = { name: 'FACEBOOK_TOKEN', value: new_token } public_key = client.get_public_key(repo.id) puts 'public key:', public_key, public_key[:key], public_key[:key_id] box = create_box(public_key)