Skip to content

Commit e72d6e0

Browse files
authored
add on-published action (#3)
* add on-published action
1 parent eff2cc6 commit e72d6e0

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Release to prod"
2+
description: "Pretend this released to production"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Do some release stuff
8+
run: |
9+
echo "this is the release script"
10+
shell: bash

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
paths-ignore:
7+
- '**.md'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Release magic"
14+
uses: ./.github/actions/release_to_prod

src/some_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
def make_a_request() -> int:
6-
response = requests.get('https://example.com')
6+
response = requests.get('https://example.org')
77
return response.status_code
88

99

src/test_some_file.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@ def test_all_1s_returns_negative_four(self) -> None:
1818
assert roll_fate(0) == -4
1919
assert roll_fate(0) == -4
2020
assert roll_fate(0) == -4
21-
22-
def test_all_break_the_build(self) -> None:
23-
with patch('some_file.randint', return_value=1):
24-
assert roll_fate(0) == -1

0 commit comments

Comments
 (0)