Skip to content

Commit

Permalink
reenable graphql updater (github#16994)
Browse files Browse the repository at this point in the history
* re-enable graphql updater workflow

* remove scheduled run temporarily

* lint yaml

* re-enable graphql updater workflow

* add my pat for test

* use my pat for create pr

* update peter-evans action

* Action ran graphql script"update-files"

* use github-token

* revert

* Action ran graphql script"update-files" (#17000)

* update another workflow

* add schedule run back

Co-authored-by: rachmari <[email protected]>
Co-authored-by: Octomerger Bot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Dec 16, 2020
1 parent 4bcc362 commit 1f15ea4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/allowed-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = [
'pascalgn/automerge-action@c9bd182',
'peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326',
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
'peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8',
'peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43',
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-unused-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Remove script results file
run: rm -rf ./results.md
- name: Create pull request
uses: peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
with:
# need to use a token with repo and workflow scopes for this step
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/update-graphql-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ env:

on:
workflow_dispatch:
#schedule:
#- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
schedule:
- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST

jobs:
update_graphql_files:
Expand All @@ -37,15 +37,15 @@ jobs:
- name: Run updater scripts
env:
# need to use a token from a user with access to github/github for this step
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
GITHUB_TOKEN: ${{ secrets.RACHMARI_REPO_WORKFLOW }}
run: |
script/graphql/update-files.js
- name: Create pull request
id: create-pull-request
uses: peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
with:
# need to use a token with repo and workflow scopes for this step
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Action ran graphql script"update-files"'
title: GraphQL schema update
body:
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ GEM

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
graphql (= 1.10.6)
graphql-schema_comparator (~> 1.0.0)

BUNDLED WITH
2.1.4
2.2.1

0 comments on commit 1f15ea4

Please sign in to comment.