Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: test pr workflow (wip) #35

Merged
merged 43 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
79413c6
test pr workflow
marshacb Sep 4, 2023
b4a7880
update on script
marshacb Sep 4, 2023
b119391
test action update
marshacb Sep 4, 2023
b10b6a6
update pr yml action update
marshacb Sep 4, 2023
d47e1ed
update allow removing to true
marshacb Sep 4, 2023
8b59bf2
update file path
marshacb Sep 4, 2023
c2b87cf
file path change
marshacb Sep 4, 2023
f5b97a2
test github workspace var
marshacb Sep 4, 2023
1bf59c4
test commit action
marshacb Sep 4, 2023
18c6d13
remove checkout master
marshacb Sep 4, 2023
5446d02
test registry build with json removed
marshacb Sep 4, 2023
1d1fc45
update pr yml
marshacb Sep 4, 2023
18e42a5
test auto commit action
marshacb Sep 4, 2023
9722205
update permissions
marshacb Sep 4, 2023
47e6608
remove local registry file
marshacb Sep 4, 2023
8ae51e6
remove add .
marshacb Sep 5, 2023
7a80096
add disable_globbing true, add file pattern for json
marshacb Sep 5, 2023
9328926
test file change
marshacb Sep 5, 2023
dc07ea4
update path
marshacb Sep 5, 2023
f5193b8
update registry ref
marshacb Sep 5, 2023
c750743
test auto commit
marshacb Sep 5, 2023
b94ffc8
test file changes
marshacb Sep 5, 2023
083de2f
test changes
marshacb Sep 5, 2023
dd57a75
Automated Registry Update
marshacb Sep 5, 2023
6cacb63
update MultiLocation to XcmV3MultiLocation to support GlobalConsenus …
marshacb Sep 5, 2023
2769379
test autoapproval
marshacb Sep 6, 2023
78cfec6
test auto approval
marshacb Sep 6, 2023
df1b661
separate approval action
marshacb Sep 6, 2023
5e842e8
update pull request target
marshacb Sep 6, 2023
2ad91d1
update workflow conditional
marshacb Sep 6, 2023
106136e
re-add auto approval conditional
marshacb Sep 6, 2023
4b48e2c
test scheduled run
marshacb Sep 7, 2023
3ef2bca
rem autoapproval yml
marshacb Sep 7, 2023
ec4e96b
test auto merge/release
marshacb Sep 7, 2023
c0bb3c2
merge test
marshacb Sep 7, 2023
fcbd031
merge testing
marshacb Sep 7, 2023
1408acb
update pr yml
marshacb Sep 7, 2023
661750d
test automerge change
marshacb Sep 7, 2023
5d8d86b
test labeler config
marshacb Sep 7, 2023
91ecf89
test add label
marshacb Sep 7, 2023
e6d669e
remove conditional from label
marshacb Sep 7, 2023
1f9b997
update permissions
marshacb Sep 7, 2023
9e7d697
Automated Registry Update
marshacb Sep 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/autoapproval.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto approve

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
auto-approve:
name: 'Auto Approval'
runs-on: ubuntu-latest

permissions:
pull-requests: write

if: github.actor == 'dependabot[bot]' || github.actor == 'marshacb'
steps:
- uses: hmarr/auto-approve-action@v3
with:
review-message: "Auto approved automated PR"
57 changes: 57 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: pr

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-registry:
name: 'Build Asset Registry'
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Install deps
run: yarn install

- run: echo ${{github.actor}}

# remove previous assets registry
# - run: rm registry.json

# # rebuild assets registry
# - run: yarn start

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Registry Update
file_pattern: '*.json'
disable_globbing: true

auto-approve:
name: 'Auto Approval'
needs: build-registry
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- uses: hmarr/auto-approve-action@v3
with:
review-message: "Auto approved automated PR"
Loading