Skip to content

Commit

Permalink
[ci] Check out master when managing tags & labels (#18393)
Browse files Browse the repository at this point in the history
* [ci] Check out master when managing tags & labels

Previously, we identified a problem when attempting to run a GitHub
Action for the "pull_request" event when the underlying branch had been
deleted [1]. By migrating to the latest GitHub Action beta release [2],
we've since gained more insight into the process and more control over
its behavior.

Alter the configuration for the new "checkout" Step to consistently
check out the `master` branch. Update the Action specifier to reference
a stable release of the Action.

[1] #18286
[2] #18359

* fixup! [ci] Check out master when managing tags & labels
  • Loading branch information
jugglinmike committed Aug 20, 2019
1 parent d8c23c9 commit 6e9bf94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull_request.yml
Expand Up @@ -4,7 +4,10 @@ jobs:
update-pr-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v1.0.0
with:
ref: refs/heads/master
fetch-depth: 1
- name: update-pr-preview
uses: ./tools/docker/github
env:
Expand Down

0 comments on commit 6e9bf94

Please sign in to comment.