Difference between revisions of "Github.event name"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 3 users not shown)
Line 3: Line 3:
  
  
      - name: Set PR tag
+
  <nowiki> - name: Set PR tag
        if: ${{ github.event_name == '[[pull_request]]' }}
+
            if: ${{ github.event_name == '[[pull_request]]' }}
        run: echo "TAG=pull-request-${{ github.event.number }}" >> $GITHUB_ENV
+
            run: echo "TAG=pull-request-${{ github.event.number }}" >> $GITHUB_ENV</nowiki>
  
  
{{GitHub Actions}}
+
 
 +
if: failure() && github.event_name != '[[pull_request]]'
 +
 
 +
== Related ==
 +
* <code>[[github.event.number]]</code>
 +
* <code>[[GitHub Environment variables]]</code>
 +
 
 +
== See also ==
 +
* {{GitHub Actions}}
 +
 
 +
[[Category:Git]]

Latest revision as of 10:31, 24 October 2024

github.event_name


  - name: Set PR tag
             if: ${{ github.event_name == '[[pull_request]]' }}
             run: echo "TAG=pull-request-${{ github.event.number }}" >> $GITHUB_ENV


if: failure() && github.event_name != 'pull_request'

Related[edit]

See also[edit]

Advertising: