Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Nov 1, 2022
1 parent 8e98d96 commit b3d4e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/renew.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion renew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3d4e0a

Please sign in to comment.