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/issue 4 #7

Merged
merged 2 commits into from
Aug 17, 2023
Merged
Changes from all commits
Commits
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
18 changes: 12 additions & 6 deletions .github/workflows/build-alpha-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Check if commentator is a member of cxbox-team
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.cxboxgithub_token }}
USER: cxboxgithub
TOKEN: ${{ secrets.READ_MEMBERS_TOKEN }}
USER: ${{ secrets.READ_MEMBERS_USER}}
outputs:
output1: ${{ steps.step1.outputs.member_check }}
steps:
Expand All @@ -29,15 +29,16 @@ jobs:
name: Build alpha package
needs: check-commentator
env:
TOKEN: ${{ secrets.cxboxgithub_token }}
TOKEN: ${{ secrets.READ_MEMBERS_TOKEN }}
USER: ${{ secrets.READ_MEMBERS_USER}}
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/alpha') && needs.check-commentator.outputs.output1 > 0
runs-on: ubuntu-latest
steps:
- name: Get PR
id: get_pr
run: |
echo "github.event.issue.pull_request.url=${{ github.event.issue.pull_request.url }}"
pr=`curl -u cxboxgithub:$TOKEN ${{ github.event.issue.pull_request.url }} | tr '\n' ' '`
pr=`curl -u $USER:$TOKEN ${{ github.event.issue.pull_request.url }} | tr '\n' ' '`
echo "##[set-output name=pr_data;]$pr"

- name: Get branch
Expand Down Expand Up @@ -75,10 +76,15 @@ jobs:

- name: Increase version
run: |
git config --global user.name "github"
git config --global user.email "dergachev@hotmail.com"
git config --global user.name "cxbox"
git config --global user.email "cxbox.mail@gmail.com"
yarn version --new-version ${{ steps.bump_version.outputs.next-version }}

- uses: actions/setup-node@v1
with:
node-version: '10.x'
always-auth: true

- name: install
run: yarn install

Expand Down
Loading