Update default branch

This commit is contained in:
Peter Evans 2021-05-12 17:18:15 +09:00
parent a35cf36e53
commit 38214a08ee
2 changed files with 5 additions and 5 deletions
.github/workflows

@ -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]

@ -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