Skip to content

Commit

Permalink
Add checkout + fix token variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jan 12, 2021
1 parent 298e22f commit e771585
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ env:
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: "${{ secrets.OSX_CROSS_AVR_HOMEBREW_GITHUB_API_TOKEN }}"

- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master

Expand All @@ -31,18 +36,17 @@ jobs:
run: brew install-bundler-gems

- name: Set up git
uses: Homebrew/actions/git-user-config@master
with:
username: "osx-crossTestBot"
token: ${{ secrets.OSX_CROSS_AVR_HOMEBREW_GITHUB_API_TOKEN }}
run: |
git config --global user.name "osxCrossTestBot"
git config --global user.email "[email protected]"
- name: Pull bottles
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST

- name: Push commits
uses: Homebrew/actions/git-try-push@master
with:
token: $${{ secrets.OSX_CROSS_AVR_HOMEBREW_GITHUB_API_TOKEN }}
token: ${{ secrets.OSX_CROSS_AVR_HOMEBREW_GITHUB_API_TOKEN }}
branch: master

- name: Delete branch
Expand Down

0 comments on commit e771585

Please sign in to comment.