mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-04-11 20:50:14 +08:00
Update default branch
This commit is contained in:
parent
a35cf36e53
commit
38214a08ee
.github/workflows
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -1,12 +1,12 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'README.md'
|
- 'README.md'
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'README.md'
|
- 'README.md'
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
@ -87,7 +87,7 @@ jobs:
|
|||||||
reactions: heart, hooray, laugh
|
reactions: heart, hooray, laugh
|
||||||
|
|
||||||
package:
|
package:
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
needs: [test]
|
needs: [test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -102,7 +102,7 @@ jobs:
|
|||||||
commit-message: Update distribution
|
commit-message: Update distribution
|
||||||
title: Update distribution
|
title: Update distribution
|
||||||
body: |
|
body: |
|
||||||
- Updates the distribution for changes on `master`
|
- Updates the distribution for changes on `main`
|
||||||
|
|
||||||
Auto-generated by [create-pull-request][1]
|
Auto-generated by [create-pull-request][1]
|
||||||
|
|
||||||
|
2
.github/workflows/test-command.yml
vendored
2
.github/workflows/test-command.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
if [[ -z "$repository" ]]; then repository=${{ github.repository }}; fi
|
if [[ -z "$repository" ]]; then repository=${{ github.repository }}; fi
|
||||||
echo ::set-output name=repository::$repository
|
echo ::set-output name=repository::$repository
|
||||||
branch=${{ github.event.client_payload.slash_command.branch }}
|
branch=${{ github.event.client_payload.slash_command.branch }}
|
||||||
if [[ -z "$branch" ]]; then branch="master"; fi
|
if [[ -z "$branch" ]]; then branch="main"; fi
|
||||||
echo ::set-output name=branch::$branch
|
echo ::set-output name=branch::$branch
|
||||||
|
|
||||||
# Checkout the branch to test
|
# Checkout the branch to test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user