From 98e54e4762d90ed8854fdb84d6d5b881a4d09f07 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Fri, 6 May 2022 11:42:02 -0500 Subject: [PATCH 1/2] chore: tutorial setup phase --- .github/workflows/jahorton-test.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/jahorton-test.yml diff --git a/.github/workflows/jahorton-test.yml b/.github/workflows/jahorton-test.yml new file mode 100644 index 0000000..ad81f7a --- /dev/null +++ b/.github/workflows/jahorton-test.yml @@ -0,0 +1,31 @@ +# This is your hello Github Actions file + +name: Baby's first GitHub action + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: [ CHANGETOMAIN ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Run a single command using the runners shell + - name: Github json + run: echo '${{ toJSON(github) }}' +# Below you can see how a second job named test could be added that runs on windows and has its own steps +# test: +# runs-on: windows-latest +# +# steps: + \ No newline at end of file From 72a01f36706de4629becddb07fe17e2f0e1ea9f2 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Fri, 6 May 2022 11:49:00 -0500 Subject: [PATCH 2/2] fix: branches prop rename --- .github/workflows/jahorton-test.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jahorton-test.yml b/.github/workflows/jahorton-test.yml index ad81f7a..c7dcde4 100644 --- a/.github/workflows/jahorton-test.yml +++ b/.github/workflows/jahorton-test.yml @@ -6,7 +6,7 @@ name: Baby's first GitHub action on: # Triggers the workflow on push or pull request events but only for the main branch pull_request: - branches: [ CHANGETOMAIN ] + branches: [ main ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/README.md b/README.md index c19dc89..8af4342 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Github action practice repository for Language Technology conference 2022 1. Create a branch named after your github user (or anything you like that noone else is likely to use) 2. Do not look at the grading.yml until after the session if you can help it. 3. Copy the template.yml file in the .github/workflows to a file with the same name you used for your branch -4. Add your name or otherwise change the name from Hello GHA, and change the branch to `main` +4. Add your name or otherwise change the name from Hello GHA, and change the `CHANGETOMAIN` branch to `main` 5. Commit and push your branch to the repo 6. Make a PR 7. Observe how the action interacts with your PR