workflows: checkout earlier in steps

master
Jonathan Chang 2020-03-22 00:08:51 +11:00
parent 7f7942785a
commit 66c20fbab8
1 changed files with 7 additions and 7 deletions

View File

@ -22,8 +22,14 @@ jobs:
username: context.actor
})
user.data.email = (user.data.email || user.data.id + "+" + user.data.login + "@users.noreply.github.com")
console.log("Dispatched by " + user.data.name + "<" + user.data.email + ">")
console.log("Dispatched by " + user.data.name + " <" + user.data.email + ">")
return user.data
- name: Checkout tap
uses: actions/checkout@v2
- name: Setup tap
run: |
rm -rf $(brew --repository ${{github.repository}})
ln -s $GITHUB_WORKSPACE $(brew --repository ${{github.repository}})
- name: Download artifacts
uses: Homebrew/actions/download-artifact@master
with:
@ -32,12 +38,6 @@ jobs:
pr: ${{github.event.client_payload.pull_request}}
name: bottles
path: bottles
- name: Checkout tap
uses: actions/checkout@v2
- name: Setup tap
run: |
rm -rf $(brew --repository ${{github.repository}})
ln -s $GITHUB_WORKSPACE $(brew --repository ${{github.repository}})
- name: Upload bottles
env:
HOMEBREW_BINTRAY_USER: brewtestbot