Skip to content

Commit

Permalink
renaming "master" to "main" in github-action yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
neelgala committed May 13, 2022
1 parent 0eb7c22 commit 4ecf88e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -30,12 +30,12 @@ jobs:
- name: Extract release notes
id: extract-release-notes
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: ffurrer2/extract-release-notes@v1

- name: Tag
id: create_tag
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: mathieudutour/github-tag-action@v5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
Expand All @@ -45,19 +45,19 @@ jobs:

- name: Build PDF
id: build_pdf
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: avattathil/asciidoctor-action@master
with:
program: "asciidoctor-pdf -a allow-uri-read -D . spec/TestFormatSpec.adoc"

- name: Create Release
id: create_release
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
release_branch: refs/heads/master
release_branch: refs/heads/main
release_name: ${{ steps.get_version.outputs.version }}
tag_name: ${{ steps.get_version.outputs.version }}
body: ${{ steps.extract-release-notes.outputs.release_notes }}
Expand All @@ -66,7 +66,7 @@ jobs:

- name: Upload Release Asset
id: upload-release-asset
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: test

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
# Triggers the workflow on push or pull request events but only for the main branch
pull_request:
branches: [ master ]
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## [3.0.1] - 2022-05-13
- Rename "master" to "main" in github-action yamls

## [3.0.0] - 2022-05-07
- Migration of test-suite to new RISCOF framework.

Expand Down

0 comments on commit 4ecf88e

Please sign in to comment.