Added a workflow file in a local branch #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# workflow for branch development | |
name: Develop in branch | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
job1: | |
name: job1 | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Job information | |
run: | | |
echo "Workflow triggered in branch '${{ github.ref }}." | |
echo "Workflow triggered by event '${{ github.event_name }}." | |
echo "Workflow triggered in branch '${{ github.actor }}." | |
- name: Message testing | |
run: | | |
echo "::debug::This is a debug message." | |
echo "::notice::This is a notice message." | |
echo "::warning::This is a warning message." | |
echo "::error::This is a error message." | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Lint | |
uses: devops-actions/[email protected] | |
- name: Bad Code | |
run: | | |
echo "PR title is '${{ github.event.pull_request.title }}'." | |