From 905352f99b790734e25132563f1a3cf1ec2be63e Mon Sep 17 00:00:00 2001 From: Tim Schrumpf Date: Sun, 11 Oct 2020 01:10:04 +0200 Subject: [PATCH 1/2] Be precise about the format of the output I stumbled across this to add the plain branch name to the [Docker push action](https://github.com/docker/build-push-action) as a tag, which does not work with ```yaml with: tags: tillepille/my-image: ${{ github.ref }} ``` --- .../context-and-expression-syntax-for-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/context-and-expression-syntax-for-github-actions.md b/content/actions/reference/context-and-expression-syntax-for-github-actions.md index 8c86fb1bb5f5..2fa5407b33ee 100644 --- a/content/actions/reference/context-and-expression-syntax-for-github-actions.md +++ b/content/actions/reference/context-and-expression-syntax-for-github-actions.md @@ -93,7 +93,7 @@ The `github` context contains information about the workflow run and the event t | `github.event_path` | `string` | The path to the full event webhook payload on the runner. | | `github.head_ref` | `string` | The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is a `pull_request`. | | `github.job` | `string` | The [`job_id`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id) of the current job. | -| `github.ref` | `string` | The branch or tag ref that triggered the workflow run. | +| `github.ref` | `string` | The branch or tag ref that triggered the workflow run in the form of `refs/heads/`. | | `github.repository` | `string` | The owner and repository name. For example, `Codertocat/Hello-World`. | | `github.repository_owner` | `string` | The repository owner's name. For example, `Codertocat`. | | `github.run_id` | `string` | {% data reusables.github-actions.run_id_description %} | From 569da351c65e7882616f68299adc747623873007 Mon Sep 17 00:00:00 2001 From: Lucas Costi Date: Tue, 20 Oct 2020 15:30:14 +1000 Subject: [PATCH 2/2] Update content/actions/reference/context-and-expression-syntax-for-github-actions.md --- .../context-and-expression-syntax-for-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/context-and-expression-syntax-for-github-actions.md b/content/actions/reference/context-and-expression-syntax-for-github-actions.md index 2fa5407b33ee..8fb3b1604bf6 100644 --- a/content/actions/reference/context-and-expression-syntax-for-github-actions.md +++ b/content/actions/reference/context-and-expression-syntax-for-github-actions.md @@ -93,7 +93,7 @@ The `github` context contains information about the workflow run and the event t | `github.event_path` | `string` | The path to the full event webhook payload on the runner. | | `github.head_ref` | `string` | The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is a `pull_request`. | | `github.job` | `string` | The [`job_id`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id) of the current job. | -| `github.ref` | `string` | The branch or tag ref that triggered the workflow run in the form of `refs/heads/`. | +| `github.ref` | `string` | The branch or tag ref that triggered the workflow run. For branches this in the format `refs/heads/`, and for tags it is `refs/tags/`. | | `github.repository` | `string` | The owner and repository name. For example, `Codertocat/Hello-World`. | | `github.repository_owner` | `string` | The repository owner's name. For example, `Codertocat`. | | `github.run_id` | `string` | {% data reusables.github-actions.run_id_description %} |