This repository was archived by the owner on Feb 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +29
-36
lines changed Expand file tree Collapse file tree 2 files changed +29
-36
lines changed Original file line number Diff line number Diff line change 5
5
- .github/workflows/scheduled.yml
6
6
schedule :
7
7
# Once every day
8
- - cron : ' 0 0 * * *'
8
+ - cron : " 0 0 * * *"
9
9
jobs :
10
10
delete :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : Set up Git repository
14
- uses : actions/checkout@master
13
+ - name : Set up Git repository
14
+ uses : actions/checkout@master
15
15
16
- - name : Set up Ruby
17
- uses : actions/setup-ruby@master
18
- with :
19
- ruby-version : ' >=2.6'
16
+ - name : Set up Ruby
17
+ uses : ruby/setup-ruby@master
18
+ with :
19
+ ruby-version : " 2.6"
20
+ bundler-cache : true
20
21
21
- - name : Install RubyGems
22
- run : |
23
- gem install bundler
24
- bundle install --jobs 4 --retry 3
25
-
26
- - name : Run TwitterDelete
27
- run : bundle exec twitter_delete.rb --force
28
- env :
29
- TWITTER_USER : ${{ secrets.TWITTER_USER }}
30
- TWITTER_DAYS : ${{ secrets.TWITTER_DAYS }}
31
- TWITTER_CONSUMER_KEY : ${{ secrets.TWITTER_CONSUMER_KEY }}
32
- TWITTER_CONSUMER_SECRET : ${{ secrets.TWITTER_CONSUMER_SECRET }}
33
- TWITTER_ACCESS_TOKEN : ${{ secrets.TWITTER_ACCESS_TOKEN }}
34
- TWITTER_ACCESS_TOKEN_SECRET : ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
22
+ - name : Run TwitterDelete
23
+ run : bundle exec twitter_delete.rb --force
24
+ env :
25
+ TWITTER_USER : ${{ secrets.TWITTER_USER }}
26
+ TWITTER_DAYS : ${{ secrets.TWITTER_DAYS }}
27
+ TWITTER_CONSUMER_KEY : ${{ secrets.TWITTER_CONSUMER_KEY }}
28
+ TWITTER_CONSUMER_SECRET : ${{ secrets.TWITTER_CONSUMER_SECRET }}
29
+ TWITTER_ACCESS_TOKEN : ${{ secrets.TWITTER_ACCESS_TOKEN }}
30
+ TWITTER_ACCESS_TOKEN_SECRET : ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
Original file line number Diff line number Diff line change 1
1
name : GitHub Actions CI
2
2
on :
3
3
push :
4
- branches : master
5
- pull_request : []
4
+ branches :
5
+ - master
6
+ pull_request :
6
7
jobs :
7
8
tests :
8
9
runs-on : ubuntu-latest
9
10
steps :
10
- - name : Set up Git repository
11
- uses : actions/checkout@master
11
+ - name : Set up Git repository
12
+ uses : actions/checkout@master
12
13
13
- - name : Set up Ruby
14
- uses : actions/setup-ruby@master
15
- with :
16
- ruby-version : ' >=2.6'
14
+ - name : Set up Ruby
15
+ uses : ruby/setup-ruby@master
16
+ with :
17
+ ruby-version : " 2.6"
18
+ bundler-cache : true
17
19
18
- - name : Install RubyGems
19
- run : |
20
- gem install bundler
21
- bundle install --jobs 4 --retry 3
22
-
23
- - name : Test TwitterDelete initialisation
24
- run : bundle exec twitter_delete.rb --test
20
+ - name : Test TwitterDelete initialisation
21
+ run : bundle exec twitter_delete.rb --test
You can’t perform that action at this time.
0 commit comments