-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix: update demo workflow to fix checkout issue #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, curious what @byCedric thinks
Good catch, I think I found a couple of other issues too:
Then two minor things of which I'm not a super fan.
Then, some random thoughts to make feedback a bit more clear when running from actions (this might be irrelevant as soon as we move the bot to be a github app).
|
To show an example that seems to work perfectly (including the listed 2 issues and 2 minor improvements above): name: Expo Comment Bot
on:
# minor 2 - also trigger on updates
issue_comment:
types: [created, edited]
concurrency:
# minor 2 - limit the max concurrency to only 1 active action per pull
group: bot-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
bot:
runs-on: ubuntu-latest
# issue 2 - only trigger from comments on pulls
if: ${{ github.event.issue.pull_request }}
# issue 1 - allow the bot to comment on pulls
permissions:
pull-requests: write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
with:
# minor - 1 checkout the repo on the pull
ref: refs/pull/${{ github.event.issue.number }}/merge
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v7
with:
eas-version: latest
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🤖 Run expo command
uses: expo/expo-github-action/command@v7 |
I'm working on add check status for it |
Co-authored-by: Cedric van Putten <me@bycedric.com>
@EvanBacon, @byCedric: Can we merge this PR? |
## [7.2.1](7.2.0...7.2.1) (2023-01-04) ### Code changes * drop rimraf dependency ([#203](#203)) ([830e647](830e647)) * update actions dependencies ([#202](#202)) ([259d15d](259d15d)) * update dev dependencies ([#204](#204)) ([5a73f07](5a73f07)) ### Other chores * bump @actions/core from 1.6.0 to 1.9.1 ([#191](#191)) ([670b449](670b449)) * bump ansi-regex from 5.0.0 to 5.0.1 ([#198](#198)) ([d63621e](d63621e)) * bump json5 from 1.0.1 to 1.0.2 ([#196](#196)) ([5a8228a](5a8228a)) * bump minimatch from 3.0.4 to 3.1.2 ([#197](#197)) ([5619369](5619369)) * bump qs from 6.5.2 to 6.5.3 ([#195](#195)) ([3beea56](3beea56)) * bump semantic-release from 18.0.1 to 19.0.3 ([#185](#185)) ([079b95e](079b95e)) * bump semver-regex from 3.1.3 to 3.1.4 ([#183](#183)) ([6b82e9e](6b82e9e)) * rebuild all actions ([e6ba70c](e6ba70c)) * update workflow actions to latest ([3cecf2e](3cecf2e)) ### Documentation changes * **command:** update readme to fix badge ([#201](#201)) ([2606508](2606508)) * **preview-comment:** add missing permissions in examples ([#187](#187)) ([5848f88](5848f88)) * update badge urls in the readmes ([#199](#199)) ([8440fd9](8440fd9)) * update demo workflow to fix checkout issue ([#181](#181)) ([8e2559c](8e2559c)) * use latest action verisons in readme ([#193](#193)) ([3f0a4b5](3f0a4b5))
🎉 This PR is included in version 7.2.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Linked issue
Fix the wrong commit issue with the solution from actions/checkout#331 (comment)
Additional context